Contact Us
  
 
 
    SearchSearch   RegisterRegister   Log inLog in 

how to pass javascript variable value to iframe

how to pass javascript variable value to iframe

 
Post new topic   Reply to topic     Forum Index -> JavaScript, DHTML, AJAX
View previous topic :: View next topic  
Author Message
kwilliam



Joined: 04 Feb 2009
Posts: 2

PostPosted: Fri Feb 20, 2009 3:20 pm    Post subject: how to pass javascript variable value to iframe Reply with quote

Hi
i want to pass javascript variable value to iframe
Back to top
View user's profile Send private message
seniormember
Site Admin


Joined: 20 Jul 2008
Posts: 77

PostPosted: Sat Feb 21, 2009 4:03 pm    Post subject: Reply with quote

I think you can do normally with form and page

sending value with iframe
is

Code:
<script>
var param=document.form[0].field.value
function xyz(){
  document.getElementById("idFrame").src="page1.jsp?parameter="+param;
}
</script>


I think it will solve your problem
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> JavaScript, DHTML, AJAX All times are GMT
Page 1 of 1

 
Jump to:  
  Quick Post a Reply Topic
     
  Name (required)  
     
  Email Address (will not be published) (required)  
     
  Subject of topic (required)  
     
   
     
   
     
  Advertisement  
     
 
     


  More Links  
 
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack