• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using a variable in the src attribute of frame

 
john sal
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using a variable in the src attribute of frame

The opening page link is like

<a href="abc.html?name=test.html">

now this abc.htm page contains a html frame.

Now i want to get the value of name field from the request and want to pass it in the src attribute of a frame


now i want to pass this nameId to the src attribute of frame

<frameset rows="..
<frame src=..
<frame src= nameId />
</frameset>

however when i am using the nameId as a value of src parameter of frame it is not working. Can someone let me know how this can be achieved.



 
Albareto McKenzie
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course it is not passed, you don't post the the frame but a form, if you want to post things that are not in the form you can invoke a function instead of a link, something like this:



or whatever
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic