?
Solved

reload problem

Posted on 2003-02-25
2
Medium Priority
?
208 Views
Last Modified: 2008-03-06
I have one problem and question
I have this small function in JS

function stream_selection() {
       var index = document.physical_update.streamId.selectedIndex;
       id_meet = "meeting=" + document.physical_update.meetingId.value;
       id = "stream=" + document.physical_update.streamId.options[index].value;
       alert('id_meet is '+id_meet +'id is '+id)  //until here i m getting both value correctly
       top.details.location = "physical_update.php?"+id_meet &id ;
      // top.details.location = "physical_update.php?"+id;
     }

in that meeting id I m getting from some other file and with the help of that meeting id I m filling ids of physical streams now what I want when I select one stream id it should give me selected id with the help of that physical stream id I can get some details.

so for that I made this function and I put this in ONCHANGE for physical stream, but when I do this I lose my meeting id because it refresh the page and i lost my meeting id.
so is there any way to keep my meeting id and get stream id also. I was thinking to pass both values in the function.

So do u any body know how I can do this.
0
Comment
Question by:manish14
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
Zaytsev earned 150 total points
ID: 8015988
I would rewrite your function like this:

function stream_selection() {
  id_meet = document.physical_update.meetingId.value;
  id = document.physical_update.streamId.options[document.physical_update.streamId.selectedIndex].value;
  top.details.location = "physical_update.php?meeting="+id_meet+"&stream="+id ;
}

HTH,
Yury.
0
 

Author Comment

by:manish14
ID: 8016394
thankx now it works
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question