I need Safari JavaScript help here

Hi,
Firefox supports a method on the window object called find(str) which will find text on your page and highlight it. Internet Explorer has something similar with the TextRange object. I can't find an equivalent call / method for Safari... is there one available? It's basically similar to what you can do with 'Find' from the browser menu, but you can do it via JavaScript.
Thanks!
-B

Ok, I resolved that last issue, how ever, I've hit a new one.
I've begun to build the actual MTPfs for FUSE, and I've managed to get it down to a minimal of errors:
bash-3.2# make
gcc -DPACKAGE_NAME=\"MTPfs\" -DPACKAGE_TARNAME=\"mtpfs\" -DPACKAGE_VERSION=\"0.6\" -DPACKAGE_STRING=\"MTPfs\ 0.6\" -DPACKAGE_BUGREPORT=\"Chris\ Debenham\ \<[email protected]\>\" -DPACKAGE=\"mtpfs\" -DVERSION=\"0.6\" -DDEBUG=0 -I. -DFUSEUSEVERSION=26 -framework IOKit -D_FreeBSD_=10 -DFILE_OFFSETBITS=64 -I/sw/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/fuse -g -O2 -MT mtpfs-mtpfs.o -MD -MP -MF .deps/mtpfs-mtpfs.Tpo -c -o mtpfs-mtpfs.o `test -f 'mtpfs.c' || echo './'`mtpfs.c
mtpfs.c:984: error: ‘mtpfs_statfs’ undeclared here (not in a function)
mtpfs.c:985: warning: initialization from incompatible pointer type
mtpfs.c:994:46: error: macro "fuse_main" requires 4 arguments, but only 3 given
mtpfs.c: In function ‘main’:
mtpfs.c:994: error: ‘fuse_main’ undeclared (first use in this function)
mtpfs.c:994: error: (Each undeclared identifier is reported only once
mtpfs.c:994: error: for each function it appears in.)
make: * [mtpfs-mtpfs.o] Error 1
any ideas?

Similar Messages

  • Ok i need lots of help here... i have a WRT54G router and...

    ok i need lots of help here... i have a WRT54G router and trying to hard wire a computer to it and wirelessly connect to a laptop... i have dsl internet connection... the power light is blinking constintly and when i try to setup the router the default password doesnt work already tried to reset the router and that didnt help... any thoughts> thanks

    the power led blinking all the time can be caused by a corrupt firmware, or a defective power adapter,  try doing a hard reset, you may need to do it a couple of times, and then power down both the modem and router.
    after a couple minutes, power up the modem, wait for the link led lights up, then power up the router and look for it to link up with the modem, at this time the power led on the router should be on solid if all is ok.
    if it still don't light solid, you may need to do a firmware update, or the router is defective.

  • Definately Gonna Need Some Advanced Help Here...

    Hey guys, I've had an iPod video for about a year now with minimal problems, but all of a sudden it messed up. The screen just shows random lines and different shapes in different colors, but when I move the click wheel, I can still here that clicking sound thingy that it makes. I've already tried resetting and restoring my iPod and neither has worked. Please someone help me. I NEED MY MUSIC!!!

    They will repair the iPod if there does not appear to be accidental damage. If the iPod itself does not have a crack on the LCD screen on the front, perhaps it was the inner screen. (If that makes any sense.) Sometimes, if the inner screen breaks you will see shapes with colors and such as you mentioned.
    Are you within the 1st year of owning the iPod? If you are, I'd recommend setting up for a repair (as long as it wasn't caused by accidental damage (as mentioned by Johnathan Burger).
    http://depot.info.apple.com/iPod

  • Need Safari Mail Help

    More help needed.
    I always keep my address book up to date and have to change an email address or two. HOWEVER, when I go to compose/send an email and I type in the person's name as the email recipient and Safari Mail gives me the choice of the old email address (which is now useless and annoying) and the new email address which is needed. How do I get rid of the old email address from popping up as a choice?
    I have gone into Safari Mail Preferences-Composing and unchecked "Automatically Complete Address" then logged off as user. I have even "restart" Leopard. I then go and "recheck" "Automatically Complete Address" and still get the old email addresses as options EVEN THOUGH I have removed these email addresses from my address book. How must I correct this?
    Thanks.

    Mail for OS X Leopard
    http://discussions.apple.com/forum.jspa?forumID=1223
    http://www.apple.com/support/leopard/mail/
    Have you looked for a cache file?
    Leopard has a real mess of spagetti string of aliases, links, and to me a real mess in
    ~/Library/Application Support/SyncServices
    all related to push technology and synchronizing with phones and cloud services.

  • Ajax experts need some urgent help here....

    Hello eveyone,
    I am new to Ajax and have been fiddling with it for the last couple of days. I am trying to get a dropdown filter to work. I have managed to sort out the filter for the frist dropdown using a Ajax script but cannot get the second drop down to work. I am not too sure to write the correct Ajax syntax. My question is on the second dropdown, how can I pass the id for the first onChange event and the second onChange event...
    Here is my explanation on what I am trying to achieve,
    When a user selects Student Name from the frist dropDown, then the onchange event runs the Ajax script
    and filters the second Dropdown and displays all the exams details by the student name selected above. The code works fine uptill this point.
    Now, when I select the second dropdown, I want it to take the value of the frist dropdown and the second dropdown and
    then filter the third dropdown. I do not know the correct syntax in Ajax on how to pass the onChange event on the frist two dropdowns.
    Here is my html dropdown code:
    <tr><td>
    //This is the first DropDown
         <select name="studentID" id="studentID" onChange="ajaxStudentID(this)">
            <option value="0" selected>Select...</option>
            <%=student.getList(stuForm.getStudentID())%>
            </select>
    </td></tr>
    <tr><td>
    //This is my Second DropDown
    //This basically filters the list and gives a dropdownlist of Exams taken by the value returned
    //from the method stuForm.getStudentID()
    <div id="examDropDownList">
         <select name="examID" id="examID" onChange="ajaxExamID(this)>
    *//My question is on this change even, how do I write the ajax function to get this ID and the previous onChange ID*
    *//which is "ajaxStudentID(this) in the frist dropdown*
            <option value="0" selected>Select...</option>
            <%=exam.createList(stuForm.getStudentID(), stuForm.getExamID())%>
            </select> 
    </div>
    </tr></td>
    //This is my Last DropDown
    //This basically filters the list and gives a dropdownlist of Exams Passed taken by the values returned
    //from the method stuForm.getStudentID() and method stuForm.getExamID()
         <select name="passID" id="passID">
            <option value="0" selected>Select...</option>
            <%=pass.createList(stuForm.getStudentID(), stuForm.getExamID(), stuForm.getPassID())%>
            </select> 
    </tr></td>Here is the Ajax script I am using:
    <script>
         function registerAjaxStuff() {
              ajaxEngine.registerRequest( 'ajaxStudentID', 'dropdownlist.jsp' );
              ajaxEngine.registerAjaxElement( 'examDropDownList' ); //This is the div, I want to run
         function ajaxStudentID(selectBox) {
              //var id = selectBox.options[selectBox.selectedIndex].value;
              var id = selectBox.value;
              //alert("groupid = " + id);
              ajaxEngine.sendRequest( 'ajaxStudentID', "id=" + id);
              registerAjaxStuff();
    </script>Here is the dropdownlist.jsp page that runs the Ajax and gets the values for the second dropdown..
    <%response.setContentType("text/xml");%>
    <%@ include file="header.jsp" %>
    <jsp:useBean id="examList" class="student.DropDown"/>
    <%
    examList.useDb(db);
    int id = utils.servletUtils.isNumber(request.getParameter("id"),0);
    %>
    <ajax-response>
       <response type="element" id="examDropDownList">
         <select name="examList" id="examList" onchange="ajaxStudentID(this)">
         <option value="0">Select</option>
         <%=examList.createList(id,0)%>
         </select>
       </response>
    </ajax-response>My Question is I want to write a function that passes two parameters, the onchange event of the second dropdown which I know how to do it but I also want to pass the selected value of the frist dropdown which I do not know how to do?

    In your javascript, get the <select> element by id (document.getElementById('studentID'), and call 'selectedIndex' for the value that is selected in the dropdown:
    var studentIdValue = document.getElementById("studentID').selectedIndex;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Need a little help here

    Hey everyone, I am brand new to JAVA and have hit a road block. It is my understanding that some information has to be added into the Environment variables.
    This is what I have so far.
    JAVA_HOME
    c:\Program Files\Java\jdk1.7.0
    Path
    %JAVA_HOME%\bin;
    CLASSPATH
    .;%JAVA_HOME%\lib
    The program I created will compile in the command prompt window and I get no errors however when I run it I get "Error: Could not find or load main class javacheckout.java
    The .class file and the .java file are named the same and reside in the same folder.
    Any help would be great.

    JAVA_HOME: Not needed in general. May be used by some tools, but even then it may not be necessary, just one place where they look for things.
    PATH: Yes, you'll want to add Java's bin directory to this variable, so that you can just type "java", "javac", etc., without having to provide the full path every time.
    CLASSPATH: Don't use this. Better to use -cp or -classpath on the command line. Whether you use CLASSPATH or -cp/-claspath, it should NOT include anything under the Java installation directory. That stuff will be found automatically relative to the executable.
    If your class is name MyClass, and is not in any package (you did not inlcude a "package" statement at the top of MyClass.java), then you would do
    java -cp directory_containing_MyClass.class MyClassFor instance, if MyClass.class is in C:/projects, then you could do
    java -cp C:/projects MyClassOr, if you're already in C:/projects in your terminal window, then you can do the above or simply
    java -cp . MyClassIf MyClass is in a package (e.g., MyClass.java starts with package com.a.b;) then somewhere you'd need a directory subtree whatever/com/a/b/MyClass.class. So say you have C:/projects/com/a/b/MyClass.class, then you'd do
    java -cp C:/projects com.a.b.MyClassNote that you cannot do something like
    java -cp C:/projects/com/a/b MyClassThe class name given to the command line MUST be the fully qualified class name, including the full package name if present, and the first element of the package structure must be directly inside a classpath element ("com" must be directly inside "C:/projects").

  • Casting, need a bit help here.

    Here's my code:
    @Test
         public void testInsertElementAt() {
              Movie m1 = new Movie("The Matrix Revolutions", 4);
              PriorityList list = new ArrayPriorityList();
              list.insertElementAt(0, m1);
              assertEquals("The Matrix Revolutions****",list.getElementAt(0));
         }it gives me an error of :
    java.lang.AssertionError: expected:<The Matrix Revolutions****> but was:<The Matrix Revolutions ****>
    This may because on the getElementAt() method that I write I put E as a return type. How do I fix this so that the assertion pass??

    I tried to modify the movie title to easier:
    public void testInsertElementAt() {
              Movie m2 = new Movie("a", 0);
              PriorityList list = new ArrayPriorityList();
              list.insertElementAt(0, m2);
              assertEquals("a",list.getElementAt(0));
         }and now the error is:
    java.lang.AssertionError: expected:<a> but was:<a>
    I will also show my Movie class:
    public class Movie {
         private String movie = "";
         private int star = 0;
         public Movie (String title, int number){
              movie = title;
              star = number;
         public String toString(){
              String result = movie;
              if (star > 0){
              result += " ";
              for (int i = 0; i<star; i++)
                   result += "*";
              return result;
         public String getTitle(){
              return movie;
    }I appreciate for all the help
    Message was edited by:
    aditya15417
    Message was edited by:
    aditya15417

  • ''cannot be read from or written to...." - Need a little help here....

    "Attempting to copy to the disk "Freddy's iPod" failed. The disk could not be read from or written to."
    That is the exact message on my computer screen when I attact my iPod for updating. Any ideas what to do here?
    Thanks,
    jf

    Hi Jason,
    Have you seen the general advice from the following Knowledge Base article?:
    "Disk cannot be read from or written to" when syncing iPod
    -Kylene

  • I need some simple help here, worth $1 duke buck

    please tell me what I am missing here. Thanks.
    //Team Patrick, Stephen, Rich
    //Week 3 team assignment due 10/9/03
    //Joanne Kuzman instructor
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Cater
         public static void main(String[] args) throws Exception
              double feeCorporate = 500.00;
              double feePrivate = 300.00;
              double feeNonprofit = 150.00;
              double feeSpecial = 200.00;
              double taxRateC = 1.0775;
              double taxRateP = 1.85;
              char response;
              System.out.println("Welcome to Local Caterer's Company Scheduling");
              System.out.println("Please choose the type of event.");
              System.out.println
              ("Your Choices are C for corporate events,P for private events, N for nonprofit and S for Special events");     
              response = (char)System.in.read();
              System.in.read(); System.in.read(); System.in.read(); System.in.read();
              while (response != "C" && != "P" && != "N" && != "S")
                   System.in.read(); System.in.read();
                   System.out.println("Your entry can only be C, P, N, or S");
                   response = (char)System.in.read();
              if(response = "C")
                   System.out.println("This Corporate event will cost " + feeCorporate " and Pop will manage this event");
                   System.out.println("The total with tax will be " + feeCorporate * taxRateC);
              else if(response = "P")
                   System.out.println("This Private event will cost " + feePrivate " and Pop will manage this event");
                   System.out.println("The total with tax will be " + feePrivate * taxRateP);
              else if(response = "N")
                   System.out.println
                   ("This Nonprofit event will cost " + feeNonprofit " and Mom will manage this event");
                   System.out.println
                   ("Nonprofit events are not taxed. Please be certain to obtan a tax exempt card from the organization and keep it on file");
              else if(response = "S")
                   System.out.println
                   ("This Nonprofit event will cost " + feeSpecial " and Mom will manage this event");
                   System.out.println("Please see Mom for tax rate on these events");
              else
                   System.out.println("Invalid Entry");
                   System.exit(0);

    I am not sure which programming lang u used to program with but in java things r a bit diffrent. you had a lot of small mistakes. anyway your code should look like this (copy paste it and don't worry)
    public class Cater
         public static void main(String[] args) throws Exception
              double feeCorporate = 500.00;
              double feePrivate = 300.00;
              double feeNonprofit = 150.00;
              double feeSpecial = 200.00;
              double taxRateC = 1.0775;
              double taxRateP = 1.85;
              char response;
              System.out.println("Welcome to Local Caterer's Company Scheduling");
              System.out.println("Please choose the type of event.");
              System.out.println
              ("Your Choices are C for corporate events,P for private events, N for nonprofit and S for Special events");
              response = (char)System.in.read();
              System.in.read(); System.in.read(); System.in.read(); System.in.read();
              while ((response != 'C') && (response!= 'P') && (response!= 'N') && (response!= 'S'))
                   System.in.read(); System.in.read();
                   System.out.println("Your entry can only be C, P, N, or S");
                   response = (char)System.in.read();
              if(response == 'C')
                   System.out.println("This Corporate event will cost " + feeCorporate+ " and Pop will manage this event");
                   System.out.println("The total with tax will be " + feeCorporate * taxRateC);
              else if(response == 'P')
                   System.out.println("This Private event will cost " + feePrivate+ " and Pop will manage this event");
                   System.out.println("The total with tax will be " + feePrivate * taxRateP);
              else if(response == 'N')
                   System.out.println("This Nonprofit event will cost " + feeNonprofit+ " and Mom will manage this event");
                   System.out.println("Nonprofit events are not taxed. Please be certain to obtan a tax exempt card from the organization and keep it on file");
              else if(response == 'S')
                   System.out.println("This Nonprofit event will cost " + feeSpecial +" and Mom will manage this event");
                   System.out.println("Please see Mom for tax rate on these events");
              else
                   System.out.println("Invalid Entry");
                   System.exit(0);

  • My girlfriend just bought a new iphone and needs me to help from home with her apps.  How can i see them? When I log in i see my apps and my music

    My girlfriend needs me to log in to itunes to help her w her apps. but when i do all i see are mine. i am logged into her acct???

    Welcome to the Apple Community.
    You can't keep swapping iTunes accounts to use other people's apps or you will locked out of changing back to your own account. I'm not sure how you can help her with her apps from another device.

  • Need help here!!!, y550 vista can't update to windows 7

    need help here
    im using y550, p8700, 500 gb, windows vista  home premium 32 bit
    i'm trying to update my computer to windows 7, but im always stuck in 62%
    i tried this method
    Restart the computer. Then, your computer will roll back to Windows Vista.
    Click Start, right-click Computer, and then click Properties.
    On the Advanced tab, click Environment Variables.
    Under System variables, click New.
    Type MIG_UPGRADE_IGNORE_PLUGINS in the Variable name field.
    Type IphlpsvcMigPlugin.dll in the Variable value field.
    Click OK three times to close the dialog boxes.
    Start the upgrade installation again.
    did not work!!!!!!!!!!!!!
    i even read this forum, actually we have simliar problem, 
    http://social.technet.microsoft.com/Forums/en/w7it proinstall/thread/6e6323b0-4b91-4a31-86c5-bfbfaac.​..
    anyway this the error i got
    C:\$Windows.~BT\Sources\Panther\setuperr.log
    2010-06-12 16:33:36, Error                        Number of Enumerated Devices = 19[gle=0x00000103]
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=00000002x
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=00000002x
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=00000002x[gle=0x00000003]
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:33:37, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:33:41, Error                        Number of Enumerated Devices = 19[gle=0x00000103]
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=00000002x
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=00000002x
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=00000002x[gle=0x00000003]
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:33:41, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:34:26, Error                        Number of Enumerated Devices = 19[gle=0x00000103]
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=00000002x
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=00000002x
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=00000002x[gle=0x00000003]
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:34:26, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:34:29, Error                        Number of Enumerated Devices = 19[gle=0x00000103]
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=00000002x
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=00000002x
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=00000002x[gle=0x80092004]
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=00000002x[gle=0x00000003]
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 16:34:29, Error                        Failed to find driver file path. Error=ffffffffx[gle=0x00000003]
    2010-06-12 17:06:11, Error      [0x080389] MIG    Failure while calling IDiscovery->Gather for Plugin={ServerPath="%SystemRoot%\System32\Setup\ms dtcstp.dll", CLSID={342992B2-913C-4C36-9DB7-6C68ABD1F079}, ThreadingModel=Apartment}. Error: 0x80070002
    so if anyone can help me, please, i wanna update to win 7, this is my 6th time trying to reinstall, i believe all my drivers are up to date which can be found here
    http://consumersupport.lenovo.com/ot/en/driversdow nloads/APR_Driver_List.aspx?CategoryID=207087&OS=.​..
    i don't wanna do clean install unless no one can help me....
    thanks

    Please go through this  Knowledge Base article.
    You need to download the Automated solution provided by microsoft from the given link within the article.
    Hope this helps 
    Cheers and regards,
    • » νιנαソѕαяα∂нι ѕαмανє∂αм ™ « •
    ●๋•کáŕádhí'ک díáŕý ツ
    I am a volunteer here. I don't work for Lenovo

  • Hi, Someone Know why my charger is not working properly but always it was been working good but now when conect my iphone (3gs) shows a yellow triangle saying : Charging is not supported with this accessory. Please I need some help here. Thanks =D

    Hi Someone Know why my charger is not working properly but always it was been working good but now when conect my iphone (3gs) appears a golden triangle saying :Charging is not Supported with this accessory. Please I Need Some Help Here. Thanks =D

    sounds like the cable or the iphone connector are somehow damaged

  • Need some help here on the proper settings for quicktime exporting from imovie that won't degredate the footage from my handycam

    need some help here on the proper setting for quicktime exporting that won't denegrate my footage from handycam canon fs200

    What are the existing settings iMovie?
    Al

  • Javascript Help Needed Again

    Hi there, I am not very good with Javascript, so was looking
    for some help.
    I have a select list for an order checkout page, which is
    basically how
    people heard about the site. You select one, and depending on
    what it
    is, another form field will appear with a message asking for
    more detail.
    For instance, if they selected Search Engine, another field
    would appear
    with the text "Which search engine" and a form field for them
    to enter
    it into.
    What is the best way to do this? Some of the options in the
    select list
    won't need the additional field.
    Cheers,
    Steve

    Dooza wrote:
    > Dooza wrote:
    >> Hi there, I am not very good with Javascript, so was
    looking for some
    >> help.
    >>
    >> I have a select list for an order checkout page,
    which is basically
    >> how people heard about the site. You select one, and
    depending on what
    >> it is, another form field will appear with a message
    asking for more
    >> detail.
    >>
    >> For instance, if they selected Search Engine,
    another field would
    >> appear with the text "Which search engine" and a
    form field for them
    >> to enter it into.
    >>
    >> What is the best way to do this? Some of the options
    in the select
    >> list won't need the additional field.
    >
    > Ok, I have almost got this sussed, just need some syntax
    help :)
    >
    > function toggleElement(sel1, element1) {
    >
    > element1 = document.cart.elements[element1];
    > //alert(element1.value);
    > if (sel1.value == 'searchenginelisting') {
    > element1.value = 'Which search engine?';
    > element1.style.display = 'inline';
    > }
    > if (sel1.value == 'searchenginesponsored') {
    > element1.value = 'Which search engine?';
    > element1.style.display = 'inline';
    > }
    > if (sel1.value == 'banner') {
    > element1.value = 'Which website?';
    > element1.style.display = 'inline';
    > }
    > else {
    > element1.value = ''; // input text will be empty
    > element1.style.display = 'none'; // hide text element
    > }
    > return;
    > }
    >
    > It currently only works when you select banner from the
    select list.
    > When you select the first 2 it does nothing. Its the way
    its nesting the
    > IFs, can anyone tell me how to sort this out?
    >
    > Cheers,
    >
    > Steve
    function toggleElement(sel1, element1) {
    var element1 = form.elements[element1];
    if (sel1.value == 'searchenginelisting' ||
    sel1.value == 'searchenginesponsored'){
    element1.value = 'Which search engine?';
    element1.style.display = '';
    return;
    if (sel1.value == 'banner') {
    element1.value = 'Which website?';
    element1.style.display = '';
    return;
    element1.value = ''; // input text will be empty
    element1.style.display = 'none'; // hide text element
    Mick

  • Hi, i have macbook A1181 and i lost my install DVD os, i need to buy, im here in philippines, manila, pls help me how can i get the DVD. tnx

    hi, i have macbook A1181 and i lost my install DVD os, i need to buy, im here in philippines, manila, pls help me how can i get the DVD. tnx

    Ask the store for a local Macintosh Users Group / Club... maybe someone there can help you. You might check pawn shops in the area for a machine that has a full set of disks. Apple will sell/mail you a set. I don't know of anyplace to legitimately download them... For what its worth any commercial (e.g. full retail version) install of OS X on disk should work for your machine.

Maybe you are looking for

  • Clean install on ext hard drive

    I have a new 21" iMac arriving and plan on using external drives rather than the internal one. It's my first time installing OS X from the App Store to a new hard drive so I want to make sure I have the procedure correct. From what I've read I can bo

  • Can't See Tracks on Playback from LP9

    Upgraded to Mavericks OS X, after doing so playback in LogicPro 9 the screen gets erased while I can still hear the tracks. how do i fix, Thanks.

  • Dispatching GridSelectionEvent throw exception at runtime - A build issue with FB 4.5

    This is a strang probelm I am facing with. My code dispatches GridSelectionEvent after setting girds' selected item in one logic path. Following is code lines - myDataGrid.selectedItem = instanceTag; myDataGrid.dispatchEvent(new GridSelectionEvent(Gr

  • Is there any way to deliver an ebook to ibookstore via an ipad3 or linux computer?

    I'm trying to upload an ebook to the ibookstore, but don't have a Mac computer to run itunes producer 2.8 Is there any alternitive way to upload a book from my ipad which runs IOS 6.0.1, or from a computer that runs linux mint? Any help is very appre

  • IPhoto & iWeb

    Howdy, I have created an album in iPhoto, dragged photos (161 images) into it directly from my events (so no tweaking etc), and then have dragged that album into a web page in iWeb. Now the problem I have is that I obviously want to optimise my websi