Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: IFrames & QueryString


Message #1 by "Peter Scribner" <plscribner@w...> on Mon, 18 Nov 2002 02:06:26
Hi All,

I need to call an IFrame'd page whilst sending it several pieces of data 
via a querystring.  I've searched the lists to no avail and tried a dozen 
different methods. The syntax and formatting has given me a headache so 
it's time to ask the experts.

This is the latest iteration of ways that don't work.

  <IFRAME ID="IFrame1" width="580" FRAMEBORDER="1" SCROLLING="yes" 
SRC="SavePayrollLine.asp?nid=" +(document.f1.empNo.value) </IFRAME>

If anyone could help out with a sample - I need to send six pieces of 
data - I would be most grateful.

Thanks in advance for your kind assistance.

Peter
Message #2 by "TomMallard" <mallard@s...> on Sun, 17 Nov 2002 18:24:45 -0800
Hmmm, have you tried document.write()?

<script>
document.write('<IFRAME ID=\"IFrame1\" width=\"580\" FRAMEBORDER=\"1\"
SCROLLING=\"yes\" SRC=\"SavePayrollLine.asp?nid=\"'
+(document.f1.empNo.value) + '</IFRAME>'
</script>

tom mallard
seattle

-----Original Message-----
From: Peter Scribner [mailto:plscribner@w...]
Sent: Monday, November 18, 2002 2:06 AM
To: ASP Web HowTo
Subject: [asp_web_howto] IFrames & QueryString


Hi All,

I need to call an IFrame'd page whilst sending it several pieces of data
via a querystring.  I've searched the lists to no avail and tried a dozen
different methods. The syntax and formatting has given me a headache so
it's time to ask the experts.

This is the latest iteration of ways that don't work.

  <IFRAME ID="IFrame1" width="580" FRAMEBORDER="1" SCROLLING="yes"
SRC="SavePayrollLine.asp?nid=" +(document.f1.empNo.value) </IFRAME>

If anyone could help out with a sample - I need to send six pieces of
data - I would be most grateful.

Thanks in advance for your kind assistance.

Peter


Message #3 by "TomMallard" <mallard@s...> on Sun, 17 Nov 2002 18:30:31 -0800
Ooops, left out the trailing paren...

<script>
document.write('<IFRAME ID=\"IFrame1\" width=\"580\" FRAMEBORDER=\"1\"
SCROLLING=\"yes\" SRC=\"SavePayrollLine.asp?nid=\"'
+(document.f1.empNo.value) + '</IFRAME>');
</script>

tom
-----Original Message-----
From: TomMallard [mailto:mallard@s...]
Sent: Sunday, November 17, 2002 6:25 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: IFrames & QueryString


Hmmm, have you tried document.write()?

<script>
document.write('<IFRAME ID=\"IFrame1\" width=\"580\" FRAMEBORDER=\"1\"
SCROLLING=\"yes\" SRC=\"SavePayrollLine.asp?nid=\"'
+(document.f1.empNo.value) + '</IFRAME>'
</script>

tom mallard
seattle

-----Original Message-----
From: Peter Scribner [mailto:plscribner@w...]
Sent: Monday, November 18, 2002 2:06 AM
To: ASP Web HowTo
Subject: [asp_web_howto] IFrames & QueryString


Hi All,

I need to call an IFrame'd page whilst sending it several pieces of data
via a querystring.  I've searched the lists to no avail and tried a dozen
different methods. The syntax and formatting has given me a headache so
it's time to ask the experts.

This is the latest iteration of ways that don't work.

  <IFRAME ID="IFrame1" width="580" FRAMEBORDER="1" SCROLLING="yes"
SRC="SavePayrollLine.asp?nid=" +(document.f1.empNo.value) </IFRAME>

If anyone could help out with a sample - I need to send six pieces of
data - I would be most grateful.

Thanks in advance for your kind assistance.

Peter





Message #4 by "Johnson, Israel" <IJohnson@R...> on Sun, 17 Nov 2002 22:16:04 -0500
How are you sending the data? 

If you are using links, set the target attribute of the link to the iframe. 

<a href=" SavePayrollLine.asp?nid=<%=value%>&another=<%=value2%>&......
target="iframe1">data sent</a>

if you are using a form, set the target of the form to the iframe.  

-----Original Message-----
From: Peter Scribner [mailto:plscribner@w...] 
Sent: Sunday, November 17, 2002 9:06 PM
To: ASP Web HowTo
Subject: [asp_web_howto] IFrames & QueryString

Hi All,

I need to call an IFrame'd page whilst sending it several pieces of data 
via a querystring.  I've searched the lists to no avail and tried a dozen 
different methods. The syntax and formatting has given me a headache so 
it's time to ask the experts.

This is the latest iteration of ways that don't work.

  <IFRAME ID="IFrame1" width="580" FRAMEBORDER="1" SCROLLING="yes" 
SRC="SavePayrollLine.asp?nid=" +(document.f1.empNo.value) </IFRAME>

If anyone could help out with a sample - I need to send six pieces of 
data - I would be most grateful.

Thanks in advance for your kind assistance.

Peter
Message #5 by "Peter Scribner" <plscribner@w...> on Tue, 19 Nov 2002 03:02:37
Tom,

Thanks, your reply was very helpful in getting the solution I wanted.  
Much appreciated.

Israel... the <A> implementation will come in handy in the future I'm sure.

Thank you both again.

Peter
> Hmmm, have you tried document.write()?

<script>
document.write('<IFRAME ID=\"IFrame1\" width=\"580\" FRAMEBORDER=\"1\"
SCROLLING=\"yes\" SRC=\"SavePayrollLine.asp?nid=\"'
+(document.f1.empNo.value) + '</IFRAME>'
</script>

tom mallard
seattle

-----Original Message-----
snipped

  Return to Index