Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button HELP NEEDED!

Status
Not open for further replies.

nomaam

Programmer
Dec 29, 2003
39
CA
i have two buttons, a search button and another button that uses a popup javascript function. the search button works fine. but when i click another button on my page that uses a popup code the search button will no longer work for some reason.

i am opening the search box in a new window:

on (Release) {
getURL(" "_blank", "GET");
}

action script located in the first frame:

p = 17457;
trackID = "E1404504087";


this button works fine untill i click on another button that uses a javascript popup. then the search button will do nothing when i click on it.

could this code be effecting the "GET" command? or any other aspect of that search button?

button in imported text file in flash text box:
<A HREF=&quot;javaScript:popup('/games/populous.html')&quot;>Populous_The_Beginning</A>

popup code in web page:

<script language=&quot;JavaScript&quot;>
function popup(arg) {
newwin = window.open('', &quot;newwin&quot;, &quot;toolbar=no,location=no,directories=no,status=no,menubar=no,personalbar=no,scrollbars=yes,resizable=yes,width='100%',height='100%',left=150,top=20&quot;);
newwin.document.write('<html><body marginwidth=&quot;0&quot; marginheight=&quot;0&quot; topmargin=&quot;0&quot; leftmargin=&quot;0&quot;><iframe src=&quot;' + arg + '&quot; width=&quot;100%&quot; height=&quot;100%&quot;></iframe></body></html>')
newwin.document.title = &quot;newwin.document.close();
}
</script>


i don't understand why a completely seperate button would effect the search button, and only effect it after it has been clicked.

do you have any idea what could be the problem?

thanks.
 
how would that effect the search button? that iframe will be in the popup that is being called.
 
And what does your search button actually do?
Can you add a trace (if testing from the application itself), or a dynamic message in a textfield, on top of what that button actually does, to see if your button remains active, even after the other button is pressed?

I'm under the impression, that your button is just not doing whatever it should after a first press, regardless!
Could be wrong, but a working trace would tell you something!

 
i tried the same situation but i changed the javascript popup code to something much more simpler that did not have the iframe bit, and i still have the same problem. any other ideas of how that code could effect the other search button?
 
ok i will try the trace then get back to you with the results. thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top