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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep IFrame from Refreshing

Status
Not open for further replies.

jmikow

Programmer
Mar 27, 2003
114
US
I'm currently using an IFrame to display another website. That website has a plugin that loads when the page loads into a browser to allow the user to view an image.

When I postback to the codebehind to execute some code it refreshes the IFrame every single time.

Is there a way to keep it from reloading the IFrame?

This is going to cause a delay between each field that the user enters since I need to run code after each field is changed.

Any suggestions would be appreciated.

Thanks,

Josh
 
sounds like a lot of blinking pages! I'd revisit how your doing things, such as: why do you need to execute code after every field is updated?

"...we both know I'm training to become a cagefighter...see what happens if you try 'n hit me..."
 
checkai,

The reason I had to execute code was that I am changing the text once they change the value that was initially loaded.

I'm starting to think that I could use client-side javascript to change the color without causing a postback.

Any ideas on how I would change the color of text for server-controls dropdownlists and text boxes?

Thanks,

Josh
 
Use a Javascript function (these can be added to a particular control by using the Attributes.Add of the relevant control)


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I've been trying to add these but they're not firing.

I've tried the following
Code:
txtContractBuyer.Attributes.Add("onTextChanged", "javascript:alert('test');")
and it does not fire.

The html renders as
Code:
 <input name="txtContractBuyer" type="text" id="txtContractBuyer" onTextChanged="javascript:alert('test');" />

Any suggestions would be appreciated.

Thanks.
 
Use the "onchange" event instead


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top