Need a JavaScript for a problem using Dreamweaver

Hi I need help with making a javaScript for this problem I have. Can you please respond to my email also with the help I need.....[email protected]
This is what I am trying to do.  I usually do it in PHP with no problem, but have to do it in javascript.  I need to make a page called index.shtml.  That pages needs to have three different sections but only display one section at a time based off of the url.  So for example index.shtml?loc=132 will display sample 1 and index.shtml?loc=133 will display sample 2.  While index.shtml?loc=134 will display sample 3.  So pretty much the content is all on one page but only displays based off of what the url is.
I was told to post this problem in the Dreamweaver forum.
Thanks for the help!!

There are different ways to achieve this. So that we give can give you with tailoured solution, please give us a link to your site.
Gramps

Similar Messages

  • Hello please hepl me in my problem in apple id, i cannot connect to my ipad mini in itune store and app store because they find me a credit card but i dont have credit card. what can i do now? i need an answer for this problem. thank you

    hello please help me in my problem in apple id, i cannot connect to my ipad mini in itune store and app store because they find me a credit card but i dont have credit card. what can i do now? i need an answer for this problem. thank you

    I would suggest that you buy a visa or mastercard gift card and put a few dollars on it and use it to access the store.  Just add money to it before you want to buy something from the store and it will act like a normal credit card for you.

  • Problems using Dreamweaver CS5 on Maverick Operating System

    I have updated the operating system from Lyon to Maverick and I am having problems using Dreamweaver CS5, I open the program and it closes automatically. I had no problems using Dreamweaver on Lyon operating system. Is there a patch or a solution to this problem? Thanks!

    Are you intending to purchase a standalone version of Dreamweaver CS5?
    Your work computer has probably got a CS4 Creative Suite installed (Design Premium CS4?).
    You won't be able to upgrade Dreamweaver CS4 (from the Suite) on your work computer to standalone Dreamweaver CS5. It's not a valid upgrade path.
    Tip: CS6 is due to be released very soon.
    http://store.adobe.com/store/en_us/popup/offer/cs55_cs6_faqchannel.html
    Although free upgrades from CS5 (purchased after 26 March 2012) are available, there is some paperwork involved. In your position, I personally prefer to wait until CS6 ships - unless CS5 is really the version you want, of course.

  • Need immediate remedy for this problem?

    Post Author: chakri_psnkc
    CA Forum: General
    Hi,
    we are using CR XI with DB2, we used store-procs for the reports. I have a report having Payment ID's in the main report under a group (more than 2000 ID's), and used 2 sub-reports which are detailed one linked to the payemnt ID in the main report. what I need is to show only the information of payment ID's who have less than 6 pages of information, if more than 6 pages then the payemnt ID's and it details has to be suppressed. if anyone have the solution for this problem are so appreciated if they post it ASAP.

    Post Author: IdoMillet
    CA Forum: General
    insert subreport in a header section. use shared var to signal to the main report the number of pages in the subreport.conditional suppress...

  • JavaScript for Automation Cannot Use Scripting Addition Commands

    Attempting to recreate the example script for Messages called "Speak Events" with the new JavaScript for Automation in Yosemite, I found that it is impossible to use any scripting addition commands. For example:
    Messages = Application.currentApplication()
    Messages.includeStandardAdditions = true
    function messageReceived(m, e) {
         Messages.say(m)
    I have removed all the other (annoyingly) necessary function overrides for brevity. Similar AppleScript code functions just fine, but this will result in a privilege error because the system wrongly categorizes it as being sent cross-application. Is there any estimate on a bug fix for this?
    I've tried everything I can think of to work around this issue, even adding /usr/bin/osascript to the Security & Privacy Accessibility listing ("Allow the apps below to control your computer") which is not possible without editing the SQLite DB.
    The documentation included in Script Editor is also woefully inadequate, lacking a readable listing of what exactly is being passed into the handler function. How can I translate an AppleScript line like "received theMessage from theBuddy for theChat with eventDescription" into a reasonable function signature for JavaScript?

    It is a big SDK and to learn its features requires a lot of reading. But to start with I guess I should start with "Introduction to SDK".
    Since you want to control Acrobat from another application you should consider this under "Interapplication communication". You will be using OLE/COM.

  • Need Sample Code for Vendor creation using JAVA API

    Hi,
    I have a scenario like Vendor creation using <b>Java API</b>.
    1.I have Vendors (Main) Table.
    2.I have <b>look up</b> tables like Account Group.
    3.Also <b>Qualifier table</b>(Phone numbers) too.
    Could you please give me the sample code which helps me to create Vendor records using Java API?
    <b>I need Code samples which should cover all of the above scenario.</b>
    <b>Marks will be given for the relevent answers.</b>
    Best Regards
    PK Devaraj

    Hi Devraj,
    I hope the below code might solve all your problem:-
    //Adding Qualified field
    //Creating empty record in Qualifed table 
    //Adding No Qualifiers
    Record qualified_record = RecordFactory.createEmptyRecord(new TableId(<TableId>));
    try {
    qualified_record.setFieldValue(new FieldId(<fieldId of NoQualifier), new StringValue(<StringValue>));//Adding No Qualifier
    catch (IllegalArgumentException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    catch (MdmValueTypeException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    //Creating Record in Qualified table
    CreateRecordCommand create_command = new CreateRecordCommand(connections);
    create_command.setSession(sessionId);
    create_command.setRecord(qualified_record);
    try
    create_command.execute();
    catch(Exception e)
    System.out.println(e.toString());
    RecordId record_id = create_command.getRecord().getId();
    //Adding the new record to Qualifed Lookup value and setting the Yes Qualifiers
    QualifiedLookupValue lookup_value = new QualifiedLookupValue();
    int link = lookup_value.createQualifiedLink(new QualifiedLinkValue(record_id));
    //Adding Yes Qualifiers
    lookup_value.setQualifierFieldValue(0 , new FieldId(<FieldID of Yes Qualifier>) , new StringValue(<StringValue>));
    //Now adding LookUP values
    //Fetch the RecordID of the value selected by user using the following function
    public RecordId getRecordID(ConnectionPool connections , String sessionID , String value , String Fieldid , String tableid)
    ResultDefinition rsd = new ResultDefinition(new TableId(tableid));
    rsd.addSelectField(new FieldId(Fieldid));
    StringValue [] val = new StringValue[1];
    val[0] = new StringValue(value);
    RetrieveRecordsByValueCommand val_command = new RetrieveRecordsByValueCommand(connections);
    val_command.setSession(sessionID);
    val_command.setResultDefinition(rsd);
    val_command.setFieldId(new FieldId(Fieldid));
    val_command.setFieldValues(val);
    try
         val_command.execute();
    catch(Exception e)
    RecordResultSet result_set = val_command.getRecords();
    RecordId id = null;
    if(result_set.getCount()>0)
         for(int i = 0 ; i < result_set.getCount() ; i++)
         id = result_set.getRecord(i).getId();     
    return id;
    //Finally creating the record in Main table
    com.sap.mdm.data.Record empty_record = RecordFactory.createEmptyRecord(new TableId("T1"));
    try {
         empty_record.setFieldValue(new FieldId(<FieldId of text field in Main table>),new StringValue(<StringValue>));
         empty_record.setFieldValue(new FieldId(<FieldId of lookup field in Main table>), new LookupValue(<RecordID of the value retrieved using the above getRecordID function>));
    empty_record.setFieldValue(new FieldId(<FieldId of Qualified field in Main table>), new QualifiedLookupValue(<lookup_value>));//QualifiedLookUp  value Retrieved above
    } catch (IllegalArgumentException e1) {
    // TODO Auto-generated catch block
         e1.printStackTrace();
    } catch (MdmValueTypeException e1) {
         // TODO Auto-generated catch block
         e1.printStackTrace();
    //Actually creating the record in Main table
    CreateRecordCommand create_main_command = new CreateRecordCommand(connections);
    create_main_command.setSession(sessionId);
    create_main_command.setRecord(empty_record);
    try
         create_main_command.execute();
    catch(Exception e)
         System.out.println(e.toString());
    Thanks
    Namrata

  • Need a solution for my problem. My stuff seems to be gone.

    Hi. 
    I have an annoying problem which I solution for. When I started my laptop and logged in on my account, (there are two, my account's the administrator) everything on my desktop seemed to be deleted. But when i looked in C:/ it was still there, all the foto's
    music and stuff. Before the problem, i had a background for my desktop and many shortcuts. Now i dont have any shortcut and when i go to library's, it says that the folder is empty. But when i go to -DELL is my account- C:/Users/DELL/pictures, every picture
    seems to be there. What's also weird is that when i log on to the other account which isn't an administrator and which i don't use that often, nothing has changed. 
    PS: I have a windows 7 laptop
    Please help
    (sorry for bad english)

    Wahh Wahh stfu I never asked anyone to my work for
    me. All i asked for is help. If you read your first post and honestly consider it to be a reasonable request for help, rather than a lazy twat whining to have his work done for him, then you need even more help in basic communication than you do in computer science.
    Apparently the people
    that fill this board are just too good to help or put
    anyone in the right direction to help.And yet, thousands of people get lots of very good help here. So is it just random whim, or do the people who get help do something different than knobgobblers like you?

  • Help!! Connection problems using Dreamweaver 8 on OSX 10.4.5.

    I have been unable to connect to our Web server from Dreamweaver 8 ever since I ran the Software Update 10.4.5. I've toggled on the "passive FTP" back and forth as it recommends. I've even deleted everything Dreamweaver 8ish and reinstalled the whole program. All of which has had no luck! The odd thing is that I am able to connect to any other server on my list of sites through DW 8 or even Transmit 3.5.1.
    Is there any other area(s) that I can "toggle" with on my machine's settings or preferences that might help to reset it back to how it was before?

    I recently had the same problem following the 10.4.4 update, and was told by DW tech support that there were a number of reported issues with the DW 8.0.1 update. If you're using that you might try rolling back to 8.0. Also, watch out when deleting the DW8 files before reinstalling. There were prefs all over the place: /Library/Preferences, /Library/Application Support, ~/Library/Preferences and ~/Library/Application Support, possibly others. FWIW my problem ultimately was traced to an illegal (for DW, not OSX) character in a recently renamed HD. It was weird, 'cause I had no trouble with DW7, Transmit or Fetch, just DW8.

  • Need someone helps for several Problems on my 9630 Tour

    Hello,
    Well, these are list of problems with my 9630 Tour, and I need some helps to solve these :
    1. My 1st problem is, everytime my 9630 started its also a message appears : "uncaught exception index 8 >= 8"
    2. And I also realized that some missing application happened. My m-Banking application (already re-installed well) but it also lost of SMS icon. So the result is, everytime I sent an outgoing SMS  I couldn't save it. And I have made a test to sent SMS from my other number to this 9630 device, but 9630 couldn't show that any incoming message, even my other device has given me notification that message has been delivered.
    3. Its also often shutdown suddenly by itself, or its shutdown upon charging
    4. Charging tasks sometime couldn't be well charged. And finally I realized that my device has off in the middle of charging task, it may caused of charging wasn't recharge the device very well 
    Hopefully I can read your kindly solution on those problems happened. Thank you for your prompt response. 
    Anwar Hussein

    Hi and Welcome to the Community!
    I actually think that all of your issues are related, and rooted in the same problem...OS corruption or hardware failure. But, before you begin, please be sure you have a good backup...see the link in my auto-sig on this post for instructions for that process.
    Then, at the top of each device forum, there should be some "sticky" threads that discuss the OS levels available for many models. If they include your model, then please use those as reference as you proceed. Otherwise, you will have to dig through the official download portal for OS packages for your model:
    http://us.blackberry.com/support/downloads/download_sites.jsp
    From a PC, you can install any compatible (e.g., for your exact BB Model Number) OS package to a BB via this procedure:
    http://supportforums.blackberry.com/t5/BlackBerry-Device-Software/How-To-Reload-Your-Operating-Syste...
    Note that while written for "reload" and the Storm, it can be used to upgrade, downgrade, or reload any BB device model -- it all depends on the OS package you download and install to your PC. If that OS package is from a carrier other than the carrier for which your BB was originally manufactured, then delete, on your PC, all copies of VENDOR.XML...there will be at least one, and perhaps 2, and they will be located in or similarly to (it changes based on your Windows version) these folders:
    C:\Program Files (x86)\Common Files\Research In Motion\AppLoader
    C:\Users\(your Windows UserName)\AppData\Roaming\Research In Motion\BlackBerry\Loader XML
    Be sure that you remove, from your PC, any other BB device OS packages as having more than one installed to the PC can cause conflicts with this procedure.
    You may also want to investigate the use of BBSAK (bbsak.org) to perform the wipe it is capable of.
    You may also want to try this procedure to perhaps narrow down the precise causal item:
    Load your OS "bare bones"...if anything is optional, do not install it.
    If the behavior presents immediately, then try a different OS with step 1
    If the behavior does not immediately present, then run for as long as it takes for you to be sure that the behavior will not present.
    Add one thing -- no matter how tempting, just one.
    If the behavior does not present immediately, then again run for long enough to be sure it will not have the same problem
    Repeat steps 4 and 5 until all things are loaded or the behavior presents
    When the behavior presents, you know the culprit...the last thing you loaded.
    If the behavior does not re-present, then you know that either step 1 or 2 cured it.
    If the behavior presents no matter what, then you likely have a hardware level issue for which no amount of OS or software can cure.
    If you are on MAC, you are limited to only your carriers sanctioned OS packages...but can still use any levels that they currently sanction. See this procedure:
    KB19915How to perform a clean reload of BlackBerry smartphone application software using BlackBerry Desktop Software
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Help Needed with JavaScript for show/hide subforms controlled by dropdown selection... Please!

    I have created a form that depending on what is seleced in a drop down menu it should determine what subform is displayed. The code I am pasting below only works with one (4 total) of the selections in the dropdown.
    I am not a scriptor by any strectch of the imagination! Can anyone see what I need to fix in the below to get this to work. It is almost like I am missing some sort of "or" statement... Any suggestions?
    Here is the current javascript associated with the dropdown field:
    form1.jobselection.customjob::change - (JavaScript, client)
    customprint.presence = "hidden";
    frontpagenote.presence = "hidden";
    weprint.presence = "hidden";
    preprint.presence = "hidden";
    if (xfa.event.newText == "CustomPrint"){customprint.presence = "visible";}
    else {frontpagenote.presence = "hidden";
    weprint.presence = "hidden";
    preprint.presence = "hidden";}
    if (xfa.event.newText == "PrePrint"){preprint.presence = "visible";}
    else {frontpagenote.presence = "hidden";
    weprint.presence = "hidden";
    customprint.presence = "hidden";}
    if (xfa.event.newText == "FrontPageNote"){frontpagenote.presence = "visible";}
    else {preprint.presence = "hidden";
    weprint.presence = "hidden";
    customprint.presence = "hidden";}
    if (xfa.event.newText == "WePrint"){weprint.presence = "visible";}
    else {frontpagenote.presence = "hidden";
    preprint.presence = "hidden";
    customprint.presence = "hidden";}
    form1.jobselection.customjob::click - (JavaScript, client)
    if (customjob.rawValue == CustomPrint)
    xfa.resolveNode(form1.jobselection.customprint).presence="visible";
    else
    xfa.resolveNode(form1.jobselection.customprint).presence="hidden";

    First of all i suggest you clean up the code a bit. Use this for example.
    var strSelectedText = xfa.event.newText;
    customprint.presence      = (strSelectedText == "CustomPrint") ? "visible" : "hidden";
    preprint.presence            = (strSelectedText == "PrePrint") ? "visible" : "hidden";
    frontpagenote.presence   = (strSelectedText == "FrontPageNote") ? "visible" : "hidden";
    weprint.presence            = (strSelectedText == "WePrint") ? "visible" : "hidden";
    //Optional code for checking values. You might want to put this in the exit-event.
    console.show();
    console.println("value = " + strSelectedText );
    console.println("customprint.presence = " +customprint.presence );
    console.println("preprint.presence = " + preprint.presence );
    console.println("frontpagenote.presence  = " + frontpagenote.presence  );
    console.println("weprint.presence = " + weprint.presence );
    // End optional code.
    What the above does is just have the same if/else you use, it just does it in much less code/scripting.
    The optional code is for you to verify what actually goes on. Wich values are changed or given, etc.
    What also might help is to write down the full path off the subform you want to change the presence of.
    So instead of "frontpage.presence" you write down "form1.frontpage.presence".
    Hope this helps.
    Rien.

  • How to implement OData based BASIC Authentication using HTML, JavaScript for Mobile Apps using Apache Cordova/PhoneGap and datajs-1.1.1.js library

    Hello,
    I have an issue with OData based BASIC authentication for iOS App created using HTML, JavaScript, SAP UI5, OData and Apache Cordova/PhoneGap.
    Please check the post here http://scn.sap.com/thread/3527245
    Request you to kindly reply on the above given link.
    Thanks and Regards,
    Suraj Kumar

    Hello Prathik,
    The code which I am using for OData based BASIC Authentication, for my Mobile App is as below.
       var onSuccess = function(data) {
       alert("We are Through"); //Just to check that the OData request was sucessful
       var onError = function(err) {
       switch(err.response.statusCode) {  
       case 403 : {
       window.alert("Error Code - 403, Service unreachable ");
       break;
       case 401 : {
       window.alert("The credentials are incorrect or missing!");
       break;  
    // dataUserName and dataPassword are the two variables, in which I am storing my Username and Password, respectively.
       var connectionRequest = {
       requestUri: "ODATA SERVICE URL GOES HERE/",
       headers: { Authorization : 'Basic ' + Base64.encode(dataUsername + ":" + dataPassword) },
       method: "POST"
       OData.request( connectionRequest, onSuccess, onError);

  • Solution for font problem using iTunes store (iTunes 9 @ Vista)

    For all those of you who experience font problems rendering the iTunes store (I got partly jibberish many letters rendered as squares). For me it turned out that
    my Arial fonts were corrupted (there were other files with the same font names residing in my Windows font directory). Deleting all Arial and installing them new from another Vista machine solved the problem.
    I got to analyze the problem as follows: the rendering of the iTunes 9 store is done by the webkit. This reads a list of available fonts with files names from the registry and stores it in the file C:\Users\YOURNAME\AppData\Local\Apple Computer\WebKit\FontsList.plist (do not edit, it is generated each time you start iTunes anew). If you compare (e.g., using diffdaff) this file to the one of a Vista computer that does not show the font problem, you pretty soon realize which font family might cause the problem for you. For me it was Arial (which is used by Windows as a substitution for the Helvetica fonts BTW).

    You can try to download items one at a time to get rid of this error message. Follow these steps for such:
    1) Open iTunes.
    2) From the Store pull-down menu at the top, choose Check for Purchases.
    3) Enter your account name and password, then click Check. Your purchases should begin downloading.
    4) Under the STORE section on the left, click Downloads.
    5) Click the Pause All button in the lower-right corner. This will temporarily pause all of your downloads.
    6) To resume only one of the downloads, click the refresh button that appears to the right of one of the paused downloads.
    If that doesn't help, you may want to consider performing the following to be sure no software is conflicting with iTunes:
    1.) Disable all anti-virus software you may have running
    2.) Disable all firewall software you may have running
    3.) Disable all web acceleration software you may have running
    4.) If you are connected to the internet via an internet router, please disconnect it and connect directly via your broadband modem
    Hope this helps =)

  • Need Few Jars for RAS Server use!!!

    com.crystaldecisions.sdk.occa.infostore.*,
    com.crystaldecisions.sdk.plugin.desktop.common.*,
    com.crystaldecisions.sdk.framework.*,
    com.crystaldecisions.sdk.occa.security.*,
    com.crystaldecisions.sdk.exception.SDKException,
    com.crystaldecisions.sdk.occa.managedreports.IReportSourceFactory,
    java.util.Locale,
    com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"
    Hi all,
    The above mention are few classes available in some jars.
    Can anbody help me to find and download those Jars.
    Thanks in advance,
    Saravanakumar.

    Could you not save money and buy a photon for use with your existing server? You could install 2 HBAs and use it in split bus mode.
    For true redundancy however, you need 2 servers ideally in 2 locations. ;o)

  • Help! need good configuration for xbox 360 using WRT54GS2.

    today i bought the WRT54GS2 to use for my lptop desktop and 360. it works great for my 2 computers but not for the xbox. when i play i have crappy signal and lgg lot. the thing is when i look on the configuration in the xbox it shows 3-4 bars constint. so i tried using this link here to do port forarding and i used myxbox 360 static adress like they said. but im still lagging. im not sure what my NAT settings are set on because i havnt seen a warning yet. so im asking what is the best way to connect to my xbox 360 wireless reciever. my computer is not 5 feet awaay from my xbox so i know the connection is good where i am. so do i need to portforwad or something elese?
    in the setup it says my firmware version is 1.0.00 do i need an upgrade? if so please tell me where.
    thanks! 
    Message Edited by caufenkamp on 11-08-2009 11:40 PM
    Message Edited by caufenkamp on 11-08-2009 11:40 PM

    When you upgrade the firmware on your Router, you need to Press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router...
    For your XBOX you can make these changes on  yuor Router as well as on your XBOX. I think it should make the NAT Open on your XBOX.
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 and press Enter...Leave Username blank & in Password use admin in lower case...
    On the set-up tab change the MTU Size to 1365 and click Save Settings...
    Click on "Administration" tab and disable the option UPnP and click Save Settings...
    Click on "Applications and Gaming" tab and then click on "Port Range Forwarding" subtab...
    1) On the first line in Application box type in ABC, in the start box type in 53 and End box type in 3074, leave the protocol as both and under ip address type in 192.168.1.20 and check the enable box, click Save Settings once done...
    2) Once you return to the set up page click on the Security tab and uncheck Block Anonymous Internet Requests and click on Save Settings...
    3)Click on the Status tab and take note of DNS1 and DNS2 Addresses...
    4) Goto the XBox Network Settings and IP Address Settings and select manual IP Settings and assign the following on your Xbox IP Address :- 192.168.1.20, Subnet Mask :- 255.255.255.0, Default Gateway :- 192.168.1.1...
    5) Also assign the DNS Addresses on the Xbox, Use DNS1 and DNS2 Addresses you took note off of the router status tab as Primary DNS & Secondary DNS for the xbox...
    6) Turn off your modem, router, and Xbox...Wait for a minute...
    7) Plug the modem power first, wait for another minute and plug the router power cable, wait another minute and turn on the Xbox and test it...it will connect...

  • "waiting for activation" problem using FaceTime in my iPhone 4

    I want to use my number instead of my Apple ID. It was working before until I turned my facetime off. Now when I turn it on the only logged in was the Apple ID not my phone number..

    sumankumar wrote:
    I bought this iPhone 4 with iOS 4.2 yesterday from Australia and the first thing I wanted to try was Facetime but it seems like there is a problem. I tried to do everything mentioned in different forums to activate it but the problem is still there. When I turn on Facetime from settings>phone, it says "Waiting for Activation". I'm currently in Nepal using NepalTelecom 3G SIM. Is there a solution from Apple?
    Welcome to Discussions, sumankumar
    Anything here help? http://discussions.apple.com/thread.jspa?messageID=12399870&#12399870
    Message was edited by: EZ Jim
    Mac Pro Quad Core (Early 2009) 2.93Ghz Mac OS X (10.6.4); MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.4)
    LED Cinema Display; G4 PowerBook 1.67GHz (10.4.11); iBookSE 366MHz (10.3.9); External iSight; iPod touch 4.1

Maybe you are looking for