Equivalent Cross-browser Solutions For Window.showModalDialog?
Feb 9, 2010Whar are equivalent cross-browser solutions for window.showModalDialog? showModalDialog introduced in IE and FF 3.
View 4 RepliesWhar are equivalent cross-browser solutions for window.showModalDialog? showModalDialog introduced in IE and FF 3.
View 4 RepliesI have two webpages, parent page .aspx and child page .html.
On parent page I have JavaScript function for invoking child page as modal window via window.showModalDialog.
function viewCourseModal(url) {
var sPars = SomeParameters();
var returnedValue = window.showModalDialog(url, "", sPars);[CODE]...
So when I launch parent window and invoke child modal window, parameter with "someValue" gets returned to the parent window (to modalReadyForTest control) upon clicking the button Button1.It works fine when I have both parent and child pages on the same domain. When I have them on different domains, value of the parameters does not get passed and instead it is always "undefined".Is there any way to have modal window from different domain returning parameter value to parent page? Can those cross domain issues be solved at all or should I try completely different approach?
I am using the javascript to open a child window using window.showModaldialog(), i have retuen a value from the child page is working fine in IE and firefox but is not working in chrome browser, is there any work around or alternative for it to work in chrome as well.
View 2 RepliesI am opening a child window using window.showModalDialog() method. In the child page i have few server side controls whenever a postback happens the child page opens in a new window.
I have also set in my head tag,but it is not working.
<base target ="_self/>
For example
In Page 1: i have an anchor on whose click i open a child page(page2).
In my child page Page2: I have an asp.net button to search based on the criteria. when i enter the criteria and click search, the search results are show in new window rather then the same window.
similar to the post[URL]
I have two pages A.aspx and B.aspx Page A.aspx opens B.aspx as modal popup by javascript function window.showModalDialog("B.aspx"); Page B.aspx has two text boxes (Login, Password), <asp:Button> control and button click event in server code. Problem is when I click on the submit button it opens me B.aspx page in new third window How is it possible to not open new window on submit button.
View 3 RepliesI have created 2 webpages call Default.aspx and Detail.Aspx. On Default.aspx, i had written a javascript to popup Detail.aspx through windows.ShowModalDialog.
Now how do i get reference to Default.aspx page within detail.aspx ? (like in Server.transfer function, i can just call this.Page.PreviousPage).
Reason for getting Page Reference rather than value reference, is, i can call all property and class within default.aspx.
Im calling the new popup window from gridview like
[Code]....
In the AddTargetPopUP.aspx ,I have button Call "ADD".When i click the add button it'll insert datas into database.I want to reload the parent gridview after insert into the database and want to close the popup.
In our organization, we are still on .net 1.1 environment, using javascript, a few open source applications/widgets. Development is done using Visual Studio 2003, grid view, and iframes. Our application works in Internet Explorer 7 and IE 8 (in compatibilily mode).give any basic steps we can take to get our application to work cross browsers? What are the starting locations we can get at to start making existing code work in different browsers?
View 5 RepliesI'm goingto create an asp.net control which should be cross browser. and support some skin - multilanguage and rtl & ltr support.
View 3 RepliesIs there any free/open source X-browser tool ?
X-browser is primary thing.
I'm trying to use WebParts and I'm about ready to pull my hair out due to a couple of issues:
1.) Whenever I open my page up in Firefox, the dropdown that holds the verbs is being rendered as a row of hyperlinks across the top of the title bar. Since I put in custom verbs, this makes a single part as wide as the page and look terrible. How do I fix this?
2.) Are there any resources out there that show how to restyle the chrome and the drop down list that has the verbs?
I used javascript code to open popup window.Popup window "Maximize" button is inĀ
disable state.But in Chrome it is in enable state.I want to make browser maximize button disable.
Below is my javascript code
function Call_PopUp(event, URL) {
window.open(URL, 'CustomPopUp', 'width=990, height=540, menubar=no,scrollbars =yes, resizable=no, top=50,left=50,toolbar=no,dialog=yes,minimizable=yes,maximizable=no');
}
I need to make my site work well on a blackberry, i haven't put too much effort into getting this working yet, but i have a few questions which google is struggling with.I've read about detecting brower type and modifying the default behaviour of asp.net controls hereHow would I go about supplying a differant stylesheet to a specific browser, should i just do this?
if (Request.Browser.Browser.ToString() == "blackberry") //pseudocode
{
Response.Write("bb.css");
}
else
{
Response.Write("bb.css");
}
This will work fine, but i feel like there is a better method, i'm sure i've read about something in the past but i can't seem to recall.I'm also considering a response.redirect to a differant page for a blackberry, which at the moment i would implemenet in a similar way.
I have 2 domains that resolve to my web site www.mysite.com and www.mysitecommonmisspelling.com, plus the IP address. I have some code in my Global.asax file that was intended to force all users and crawlers to only use the main domain, like so:
Protected Sub Application_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs)
'If the domain isn't the correct top level domain for this environment,
'we want to do a 301 redirect to tell the search engines that this is not the right domain to
'index.
Dim Host As String = Me.EnvironmentHost
Dim CurrentHost As String = Request.Url.DnsSafeHost[code]....
I checked and Google has not indexed any pages on www.mysitecommonmisspelling.com, so they are apparently respecting the 301. However, a few days ago we had a customer on our site who got free shipping because the licensing code that is only registered for www.mysite.com failed (in other words, the browser was able to access www.mysitecommonmisspelling.com). In the past, we have had issues with the 3rd party shipping component because users were able to access the site using the IP address.
In any case, we don't want users to be able to access the site without the correct domain so the SSL certificate doesn't complain.
I have searched for a way to disable 301 redirects in IE7, but there doesn't appear to be a way. So, what I am wondering is if there are any browsers that can disable 301, and if so what kind of workarounds can I put in place to ensure all browsers on my site are going to the main domain, www.mysite.com?
I have an ASP.NET page and I am trying to quickly match the validation controls that are tied to a particular textbox (text input) using a jQuery selector. The validation controls render as a span and the "controltovalidate" property renders as an expando property. Here is a test example:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>......
The problem: the ml_test() function shows 1 in Internet Explorer 7 (as expected), but shows 0 in Firefox 3.6.8. I tried adding additional controls, but in Firefox it consistently doesn't work.
I discovered this post that shows the use of an ampersand in the selector like this [@expando=value], but when I try this syntax, jQuery 1.4.2 throws an error.
Is there a cross-browser way to select expando attributes, and if so, what is the proper syntax?
I Have Page That Have GridView This GridView Have a Lot Of Rows my clients Want To Freeze The Fisrt column and curresponding header(For Horizontal scroll), and I tried below code
CSS
div#div-datagrid {/*style="height: 382px; overflow: scroll; width: 100%"*/ width:100%; height:382px; overflow: scroll;/*scrollbar-base-color:#ffeaff;*/}/* Locks the left column */ td.locked, th.locked { position:relative; cursor:default; background-color:White;/*IE5+ only*/ left:expression(document.getElementById("div-datagrid").scrollLeft-2);}
[Code].....
We're investigating if it's possible to have the following: A webpage with multiple 'folders' to which a user can drag & drop a files. It's meant to be used as an interface to upload scanned documents to an archive. For example, we would have page that states: 'Quotes', 'Invoices' & 'Misc'. Depending on the sort of document the user would drag & drop the file from the local file system to one of these three folders. It should then upload the file to the correct folder on the web server
View 2 RepliesI have a datagrid and vertical-horizontal scrollbars in it. now when datagrid will have more records , scoll bars will be provided. now when i scroll vertically , my header line of the datagrid is also scrolling so i wanna freeze it. i have used javascript to freeze it , its working in IE properly but there is problem with other browser.
i used this :[URL] but its not working in other browser.
I using VS2008 and C# for an ASP.NET web application. From within C# code, how to use the "Window.Open" method to create a new browser window? I know it can be done in ASP script code using Javascript but I would like to create new window from C# as desired.
View 11 RepliesIs it possible to Open a new browser tab/window using c#. I have query string info I don't want to put in a hidden field due to it showing on the client side. I do save the data in ViewState and encrypt the viewstate; however, I don't know how to access that information on client side.
I can access the viewstate data fine on Server Side but I need to open the new browser window on server side in order to access the ViewState. I may be wrong. Is there a trick to this?
I did find a way; however, on any other click after the initial click everything goes to a new window:
Control:
[code]....
I'm retrieveing pdf file from SQL Server 2008 and i wish to display it in new browsers tab. I successfully retrieved and displayed pdf document when i had pdf viewer installed.
My problem is, that after i unistalled pdf viewer, i got this window, which would be ok if the file wasn't WebForm2.aspx but let's say MyDocument.PDF
Am i doing something wrong? How could i achive that the file would be FileName.pdf and not FileName.aspx (in case of no viewer).
vb code (i can provide c# on request)
[Code]....
I need to open a second browser window or tab, but it must have a different session ID.
Opening the new browser window from an ASP.NET page is easy, but then it shares the same cookie and thus session ID with the original.
How do you write C# code to open up a New Browser window with for example [URL]
View 4 Repliesprotected void ddlPrint_Changed(object sender, EventArgs e)
View 4 Repliesi am writing an application, and i have a link on a page that opens its url in a new browser window. on this new window, i have an asp.net gridview with radio button on each row and each row has a staff_id, and staff_name column, and the gridview has datakeys as staff_id, staff_name.
my question is that i want to be able to select a row (using the radio button) and when user clicks a button on the new window, and i want to populate two textboxes on the parent window with the staff_id and staff_name values from the selected row(in the popup window), and if possible close the popup window.