javascript

How to refresh parent page using javascript / asp.net in mozilla firefox browser

window.opener.location.reload(); is working fine with IE but not refreshing parent page in mozilla firefox browser.. please tell me how to refresh parent page in cross browser. i have got this function : Shared Sub CloseMyWindow() Dim tmpStr As String = "" tmpStr += "window.open('','_parent','');window.close();" ...

Not all Ajax content loading on one domain

I have the domain http://whatthecatdragged.in/ forwarded (cloaked) to http://moppy.co.uk/wtcdi/ The root page (index.html) uses Ajax to load the content. At the original host (moppy.co.uk/wtcdi) the page and all content loads. However, at the domain forwarded domain (whatthecatdragged.in), some of the content does not load. Has it somet...

AJAX request from one subdomain to another subdomain, but on the same domain

Hi all! I know that you can't do cross-domain ajax requests unless you use a 'proxy' one server. However, if I did an ajax request from server1.example.com to server2.example, would that not work, even though it's on the same domain of example.com? I'm pretty sure sites such as YouTube do ajax requests to different servers. such as a ...

Any dynamic database frontend tool from which you can update directly?

Hi Gurus, This is with reference to this question where I got one tabular report format. I need to update the user entered values correctly back to the same table rows. I am in the process of doing this by using general form post data methods by using some logics which I think will not be easy to maintain. So, just out of curiosity, Is...

jQuery lazyload plugin

Hi there, I've got a page that contains a list with about 100 images, and i dont want that the browser has to load all of it if the users only views approx. 10 of it. So i've tried the jQuery.lazyload plugin on my page. If i write: $( function() { $('.list li img').lazyload( { placeholder: 'n.gif' } ); }); for the code: <ul cl...

Button with location.href doesn't work in Firefox

Hi, I have a textbox for search and a button that redirects to given value of the textbox. It works well except for firefox 3, which ignores the function completely. Any ideas why and how to fix it? I have already tried window.location instead of location.href, but it again works well in all major browsers but firefox. My code: <%=Html...

Open popup from another popup

I am trying to open a popup window from another popup window using window.open method but it is simply opening the second popup in the previous popup window. Code I am currently using: win= window.open(Window,"child","top=250,left=310,Width=300,Height=150,Location=no,Scrollbars=no") win.focus(); ...

Determine if a JavaScript file is already included via a user control

I'm building several user controls (ASCX) for my website and several of them are very similar in what they do. (As a side note, I must create unique UC's even if they're similar because I'm creating widgets for the new Telligent Community themeing system). For example, two of them are different but use the same front-end code to create a...

my javascript in external html is not loading.

ok so in order here is my code /* index.html */ <!-- jQuery Scripts --> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"&gt;&lt;/script&gt; <script type="text/javascript" src="http://tdr.host22.com/scripts/li.js"&gt;&lt;/script&gt; <link href="http://tdr.host22.com/scripts/tdr.css...

Simple left right scrolling marquee

What is the lightest left-right scrolling marquee around? I would prefer if it 'bounced'... by that I mean rather than going around in a loop it would be better that it scrolled left until it was all shown and then scrolled right. I know its kinda retro... I am thinking of using it instead of truncating text. Thanks. ...

assign value to global variable in javascript

Hello, I want to assign value to global variable in javascript from jquery ajax function. var trueFalse; $.ajax({ type: "GEt", url: "url", data: "text=" + $("#text").val(), success: function(msg) { if(msg.match(/OK/) != null) { trueFalse = "true"; } else { trueFalse = "false"; } ...

How to use javascript to get an ASP.NET's Textbox Control's Value

Suppose I have an ASP.NET Text Box as Below : <asp:TextBox ID="txtQuantity" runat="server" Text="0"></asp:TextBox> I want to get this box's current value in javascript. How can I access this element? If it was a normal html text box, with id="txtQuantity", then I could access it using "document.getElementById("txtQuantity")". But how...

Which script makes up the composite script through firebug?

I put some jquery scripts in a CompositeScript and when I load the page and view the Net tab in firebug, I can't tell which of the scripts loading is the composite one. Is there a way to do this? I put jquery 1.4, jquery 1.7.2 ui, a javascript live validation and a custom js file in the block. ...

Ajax send function wont fire?

Whenever I run this file the code runs up to the point where the send function fires and then it only fires if I have an alert function directly behind it, if I take out the alert("sent"); out then it replies with ServerReadyyState is:1. What could possibly be the problem? Someone please help, I've tried it on my local machine and on my...

Jquery accordion does not work when I put the script in script file on a master page, but it does when I put it directly on the page.

I have a page called Default.aspx which inherits from a master page called Main.master. In Main.master, I have a asp:ScriptManager and within the script manager, I put the jQuery 1.4 library, jquery 1.7.2 ui library, I also put a custom js file I created which for now just has the code: $("#accordion").accordion({ collapsible: tru...

What's going on in the background with regard to this JavaScript?

I was reviewing some today, when I encountered the following convention : TestParam(1); function TestParam(p){ var p = p + 1; alert(p); // alerts '2' } Now, obviously, the developer didn't mean to delcare 'p' within the function, instead maybe meaning: p = p + 1; But the code still worked, i.e. the value alerted was...

Looking for a way (javascript) to remove .swf when finished

Hello guys, I have an .swf (but not the .fla file, so I couldn't work with ActionScript), and would like to fade that movie out once it have finished playing, so the div containing it gets empty (showing some HTML content). I think that using javascript (tweaking the special settings that Adobe outputs in the HTML file, when the movie ...

Pressing "Return" in a HTML-Form with multiple Submit-Buttons

Let's imagine a HTML-form with with two submit buttons. one of them is positioned in the upper half of the form and does something less important. the other button is the actual submit button, which saves the entered data. this button is positioned at the end of the form. the two buttons will trigger different action-urls. experienced u...

prefs.set, prefs.getString not working in google gadgets

I am initialising the user prefs and i am setting and getting numeric prefs but i do not seems to be able to get and set string prefs. the prefs i initialise are not altered later on in the gadget, but int prefs are. i set the user pref up the set the actual value prefs.set("Cpopup8_value",popup8_value); later in the app the ...

Bookmarklets that work with Frames?

Over the next year, I'll be hacking on an off-the-shelf web app from a Major Software Vendor. While we will have access to large portions of the code base, I'll be working blind on some of the web forms. Of course, Major Software Vendor only supports IE 6 & 7. It would be really nice to use some of the bookmarklets I use in more "modern"...