Javascript: Finding Frame On MainPage From The Popups?

Nov 5, 2010

In the following Javascript I have to keep finding the mainFrame from the Popup pages, is there a better way to do this?

function sendRefreshMessage(data) {
var myObj = null;
myObj = document.getElementById('slPlugin');
if (null != myObj) {
try {
//perform operation on myObj
} catch (err) {
}.....

View 1 Replies


Similar Messages:

Javascript - TinyMCE Losing Frame In IE8?

Nov 9, 2010

I have a web-site. We are using TinyMCE as our text editor. I just upgraded to the newest version and added the media plugin so our users can add videos to their enteries.The upgrade works great on Chrome, FireFox, IE7. However, it does not work with IE8. The frame around the editor disappears along with the toolbar.

Here is the init code I'm using:

tinyMCE.init({
// General options[code].....

View 1 Replies

Web Forms :: Putting A Frame In Another Frame?

Mar 12, 2010

I have this situation where I have three pages:

The first page, default.htm, is a frameset page that uses the other two pages.

The second page, casemenu.aspx, is a form that contains an object we call "PopupManager": It has an element <xxx:PopupManager runat="server"/>. This object is dependent on the standard ScriptManager, which requires a form.

The third page, header.aspx, contains three links. Each link calls a JScript function that in turn calls a function on the Popup Manager. It makes the call to the popup manager with an expression like 'top.frames.casemenu._PopupManager'.

Now, the problem I have is that I have to change default.htm to be a normal page containing an iframe, which will refer to a new page, container.aspx, which has the original frameset. When I do that, I can no longer access the PopupManager the same way ('top.frames.casemenu._PopupManager' no longer works.)

I would like some way to refer to the PopupManager relative to header.aspx, something like "self.parent.frames.casemenu._PopupManager", but that doesn't work.

View 1 Replies

Control MainPage From Iframe In ModalPopupExtander?

Jan 28, 2011

I have a page "Default.aspx".

In this page is a ModalPopupControl with an iFrame:

<div style="float: right; margin-right: 10px; margin-top: 8px;">
<asp:Button ID="btnSearchGo" runat="server" Text="Jetzt suchen" OnClick="btnSearchGo_Click" />
</div>
<asp:ModalPopupExtender BackgroundCssClass="ModalPopupBG" OkControlID="linkClosestartSeach"

[code]...

Now I have a LinkButton in the iFrame that should close the MPE and redirect the Page Default.aspx to Register.aspx.

View 1 Replies

Web Forms :: Set Focus On To The Mainpage After Opening A Pop-up Page?

Jan 14, 2010

I have a pop-up page that is opned by a button's onclientclick,

<asp:Button runat="server" ID="btn" Text="LookUp" OnClientClick="window_open('test.aspx')" CausesValidation="false" />

Now my problem is when ever the pop-up window opens, the parent page loses its focus and goes to top of the page(I guess this is beacuse the page is posting back when the button is clicked).But I could set the foucs again when I am closing the pop-up window by using

window.opener.document.form2.txtbx.focus();

in the pop-up page's javascript.

View 2 Replies

Javascript - Change The URL Of The "parent" Frame?

Dec 5, 2010

I have a website which I host myself. I do not have a static IP address so I have all traffic for my domain forwarded with masking to my DDNS account. The resulting page looks like this...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>mydomianname.com</title>
</head>
<frameset rows="100%,*" border="0">
<frame src="http://myddns.dyndns.org/mydomainname" frameborder="0" />
<frame frameborder="0" noresize />
</frameset>
</html>

How can I update the URL of the "parent" frame as users navigate within the "child" frame?

UPDATE: Success?

I have tried doing this with javascript but had an issue getting the correct href to my javascript function with out having adverse side effects (having two windows open up, having my main window go to the wrong location, or making it so the back button didn't work right). All I needed was an attribute of my a tag to hold a value that I could use in my javascript, but would do nothing else at all. Adding the attributed value event though it is not a native attribute to the a tag works great.

The a tag...

<a onclick="url_update(this);" value="test/test.html" href="javascript:void(0);">test link</a>

and the javascript function...

function url_update(element){
base_url = 'http://mydomain.com/';
window.parent.location.href = base_url + element.getAttribute('value');
}

the resulting updated URL is...

http://mydomain.com/test/test.html

... and there are none of the previously mentioned side effects.

The only "side effect" that I would like to fix is display of the link in the info bar at the bottom of a browser window. Right now it says javascript:void(0); because that is what is written in my href attribute, but I would like it to show the updated URL when the link is hovered over... any thoughts?

It would be even better if I could scrap all of this javascript and use IIS 7 URL Rewrite 2.0 to do this instead... but I have yet to master the black art of URL rewriting.

View 3 Replies

C# - Finding ID FileUpload In JavaScript

Feb 11, 2011

have several aspx pages and one site.master. I defined *.js file with any javascript functions. And now I want to find ID of FileUpload control on one of this subpage.

function CheckFile()
{
var filePath = document.getElementById('<%= this.fileUp.ClientID %>').value;

but it doesn't work.

View 2 Replies

MVC :: Finding Image Location In JavaScript?

Dec 30, 2010

I created a HTMLExtension method for a DatePicker. I reference it from the view as follows (see bolded text for image location):

[Code]....

The HTMLExtension method:

[Code]....

Everything works when run on the development server but when run with IIS, the image is not found. Generally I would use "Url.Content" to fix these problems but I can't place that in the Javascript.

View 9 Replies

Finding Guidance For Javascript Data Binding And SEO

Feb 18, 2010

I have an application that makes a series of WCF calls that return JSON via JSONP. In turn javascript code will then bind that returned data to HTML controls.

When a bot / spider hits my application, no data would be indexed because javascript would not execute in the bot.

Ideally I'd like to not have to maintain two sets of data-binding code (one on the server side and one on the client side).

Essentially I need the resulting data to come downstream. I had were to.

1) link RSS/ATOM equivalent data
2) a backdoor HTML page
3) an HTML renderer that can execute an ASPX page server side ahead of time and then pass that off to the client

View 1 Replies

JavaScript - GetElementById Not Finding Control Generated

Jan 4, 2011

I am simply trying to store a label in a variable in javascript but for some reason this isn't working with document.getElementById('control');. I know my javascript is linking to my html file fine because everything else works.

Here is my javascript code:

function performEvapCooledCircuit(txt)
{
var error = document.getElementById('lblError');
if (txt.value == null || isNaN(txt.value))
{.....

View 3 Replies

Finding Conflict Between Microsoft Ajax And TinyMCE JavaScript

Jan 8, 2010


I have written an asp.net usercontrol with TinyMCE as a text editor for my web application.

This control is being used on webforms. When other control(s) perform a partial page refresh, the control no more remains a texteditor, is converted back to the same old textarea control. When updatepanel is not used, there is no problem.

Is this some kind of conflict between Microsoft Ajax and TinyMCE JavaScript or am I missing something ?

userControlTinyMCE

Code:

[code]....

View 2 Replies

Finding Dynamically Created Table With Rows ID In Javascript

Jun 22, 2010

I created dynamically a table with 3 rows not by using table tag. I need to find these rows in scripting, in button click, if any of these rows is empty then need to generate an alert message like enter current row.

View 1 Replies

JavaScript - Finding An Element In Jquery With Some Kind Of A Placeholder

Jan 24, 2011

I have a nested table structure, a part of which is rendered by a ajax call that returns HTML from the server. The markup looks like this:

<tr>
<td><table cellpadding="0" cellspacing="0" border="0">
<%-- Content will be displayed from ajax call 1 --%>
<%-- Content will be displayed from ajax call 2 --%>
</table>
</td>
</tr>
</table>
.. more html

The ajax call returns the following html

<tr>
<td class="wpss_checkboxtd"><img width="16" height="16" src="../../images/someimg.png"></td>
</tr>
<tr>
<td class="wpss_checkboxtd"><img width="16" height="16" src="../../images/someimg.png"></td>
</tr>

In jquery, I need to insert this html for which i need an element to traverse to so that I can call the html() of that element. Unfortunately, if I use a div, for example:

<table cellpadding="0" cellspacing="0" border="0">
<div id="divAjax1">
<%-- Content will be displayed from ajax call 1 --%>
</div>
<div id="divAjax2">
<%-- Content will be displayed from ajax call 2 --%>
</div>
</table>

the classes are setup such that the div or a span causes other issues.

View 3 Replies

C# - Different Popups For Different Textbox Edits?

Nov 24, 2010

I have an issue with a popup in Asp.net using AJAX modalpoup extender. Is it possible to show one kind of popup when the user edits few textboxes and the other kind of popup for the remaining textboxes.

Ex: Only when txtbox1's value is changed, it should show me popup1 when the save button is clicked. Or else popup2.

View 1 Replies

Forms Data Controls :: Finding TextBoxes In GridView Using JavaScript?

Jan 26, 2011

i have 3 textboxes in single column of gridview each with different id prefixes

[code]....

nw i have around 3 radiobutton list for each textbox on page on which user can select differemt color for each textbox style

the problem is i want to change style ofall textboxes in gridview in each row through javascript on color selection in respective radiobuttonlist

i.e. if radiobutton list 1 is for txtAcctPrefix then on color selection all textboxes with this id should reflect changes

View 1 Replies

Forms Data Controls :: Finding A Validator In A Gridview Using JavaScript

Apr 22, 2010

I'm using this code to access controls inside a gridview using javascript:

[code]....

Thing is that for some reason it doesn't locate Validators. If i add the line - alert(sid) , it will show me all the Id's of the controls inside the GridView except for validators.

View 5 Replies

Popups Based On Querystring Parameters?

Jan 8, 2010

My querystring has 2 parameters say pm1 and pm2. I want to check the value of each and if the value if '1' then pop open a new window(one for each parameter) and the url for the two windows will be different.

View 2 Replies

AJAX Modal Popups / Trying To Add Another One, Neither One Of Them Work?

Dec 16, 2010

We are successfully using ajax modal popup on our web application.But when we try to add another one, neither one of them work. Is it only allowed to have ONE modal popup on an ASP page?

View 2 Replies

AJAX ::using 2 Modal Popups On The Same Page?

Aug 6, 2010

I'm having a problem using 2 ajax modal popups on the same page.If i use just 1 modal popup it works fine. I have a button (btnCommentOK) which calls an onlick function (OnClick="SaveCommentData") This works fine. The problem is when I add a second modalpopup extender. Funtionality works for the second modal popup but now the OnClick function on the first modal popup no longer works!

[code]...

View 2 Replies

.net - Multiple ASP Modal Popups On One Page?

Dec 18, 2010

We have a working modal popup on an asp.net page, and need to add another one. A linkbutton opens the first one.But if we try adding code for another linkbutton to open a second popup, which will use another mp extender control, neither one of them work. If we then remove the second popup and extender code, it works again.

I posted this question before but got an answer about using them in a gridview, which is not what is going on. This issue is not that complicated, just the fact that we can't get two separate popups working on a page. Are there any bugs or anything that would be preventing this from working? The code below is for the working popup. It seems logical that if we add code that works to a page and give the controls new names, it should work as well, right?

<!--modal popup extender-->
<ajax:ModalPopupExtender ID="mpe1" runat="server"
DropShadow="false" [code]....

In the page there is also the hidden button for the popup. it looks like this:

<!--hidden button for modal popup -->
<asp:Button ID="btn1" visible="true" runat="server" Style="display: none" Enabled="false" />

View 1 Replies

Finding Best Treeview Control That Renders Valid Xhtml And Works Without JavaScript

Oct 29, 2010

I'm looking for an ASP.NET control that renders a tree structure, very much like the ASP.NET TreeView control, but filling the following requirements:

Dont uses tables for rendering tree structure.
Markup Adhering to valid XHTML 1.0 Strict.
Works with AND without javascript.

Also, if the control is licensed under a MIT och GPL licens that would be great, but commercial controls is also of interest.

Do anyone know of any such control? If not, well, then I'll simply have to write the control myself. More fun in my own opinion, but likely more time consuming.

View 2 Replies

Forms Data Controls :: Finding Selected Checkboxes Listview Using Javascript?

Mar 17, 2011

I know this not the right place to ask javascript related questions.

But I dont understand how else to get the answer.

I have built an application using asp.net 4.0 and entity framework. I have implemented the routing feature introduced with the .Net 4.0 version.

Now, I have a page which will fetch products from the database and display them in a listview. For the paging purpose I have used the DataPager.

I had a really hard time making the paging feature work with DataPager as it is not fully compatible with the Routing feature(asp.net 4.0).

Now I want to give the user the option to select multiple products to compare. For this purpose I have placed a checkbox with everyproduct.

Now the problem:

I dont know how to find which checkbox was selected. i want to find the checked checkbox using javascript.

I have binded the list of products to the listview at two occasions; once directlly to the listview in page load and second time during the pre_render event of the dataPager. (As I said I had a really hard time to get this combination to work; Listview+DataPager)

View 2 Replies

AJAX :: Dynamic Popups Using Control Toolkit?

Oct 20, 2010

I am new to ASP.NET, and want to design a sample ASP.NET website which will have some text in it. I saw a couple of examples for popups, but my problem is a bit different.I need to create the hyperlinks for a word dynamically for each web page.

I will have a list of keywords with their descriptions. I need to search for those keywords in the text, before I create a popup for them. How should I go about it?

View 1 Replies

AJAX :: Get Rid Of Page Flicker When Using Modal Popups?

Mar 27, 2010

our pages flicker when using modal popups.

Any way to reduce the flicker?

We tend to postback a response to the primary page to change data, or do something, then return a modal popup with results of change or action.

Upon showing the results or a confirmation screen in the modal popup, there is flicker.

View 2 Replies

AJAX :: Modal Popups In A Single Page

May 14, 2012

i have one modal popup in a page already & functioning properly..i added another modal popup but its not getting displayed as it shld in the center.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved