javascript

ImageFlow display default width height

Has anyone here worked with http://finnrudolph.de/ImageFlow/ it resizes my images, and I want them to look bigger, I've played with the settings...but....So can anyone help me? I want the imagesz to be displayed at 80-90% of the original width and height ...

how to interrupt a form submit to call some javascript?

Hi! I'm using a form provided to me by PayPal in order to sell something on my website. Before the user hit "checkout" via the paypal form button, though, I want to track an event in google analytics. i have found this article via google analytics http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html that explains h...

object name same a function name?

If We have var randomname = {}; randomname.attribute = 'something'; function randomname(){ alert(randomname.attribute); } randomname(); Will javascript throw any errors? Update So, We know that we cannot have a object have the same name as a function. Why is this? Should javascript not be able to tell what you are after by the ...

Google Maps v3 tileloaded Event

I've been trying to create a "Loading Images" message while the tiles of the Google Map are being loaded. My implementation basically goes like this: When the maptypeid_changed or idle events fire, I display the loading message The loading message is removed as soon as the tilesloaded event fires The problems I'm facing are: When t...

Loading XML from string in javascript works fine in IE 8, fails in firefox

I have an XML file which was generated by serialising a C# object. I want to parse this XML using javascript. When i try to load a string as XML using javascript, it works fine in IE 8, but fails in Firefox. This is the code i am using if (window.DOMParser) { parser = new DOMParser(); xmlDoc = parser.parseFromString(stringValue, 'tex...

ASP.NET MVC2 Generated Javascript contains comma that breaks script in Internet Explorer, code inside

I have the following code, which works perfectly fine in every browser except for IE <script type="text/javascript"> if (!window.slider) var slider = {}; slider.data = [<% foreach (var item in Model) {%>{ "id":"<%: item.ImageID %>", "client":"<%: item.ContentTitle %>", "desc":"<%: item.ContentDescription %>" },<%} %> ]; </script> ...

How can I test DHTML with Selenium RC?

I'm having problems testing parts of my html pages with Selenium RC. If an element is present in the page and is visible when the page is loaded then there is no problem, Selenium RC can access it and can get its value or write into it (if it's a input), etc. But if the element is not visible and it is only made visible using javascript...

Clean Prototype fork (good idea?)

Is there a prototype fork that doesn't come with any DOM/ajax parts? I really prefer jQuery for these, and would rather not carry the extra baggage. So far I've been using the excellent JS.Class library, which doesn't even touch built-in classes prototypes. However, I've been outgrowing its capabilities, and prototype would fill its hole...

Tearing in HTML5 canvas?

I'm making a small game using the HTML5 canvas element. It works great, except that it has a scrolling background with obvious tearing happening in Firefox and Chromium browsers in Ubuntu. I'm pretty sure it's buffered because there isn't any of the flickering I'd expect; just tearing. Is there any way to work around this or time rend...

dropdown with next and previous functions

How to create custom component in dorpdown ? requirment is dropdown with next and previous functionalities. dropdown have list, we choose the list as well using next and previous button choose list from drop down. this is jsf dropdown , how to implement the next and previous functions in the dorpdown. (previous)< (dropdown) >(nex...

Why the hash part of the URL is not in the server side?

For example if I type in the URL: http://www.foo.com/page.php?parameter=kickme#MOREURL In the server isn't the part: #MOREURL Is possible to send or get these part to the server without jQuery AJAX?. Thanks ...

HTML - force page scroll position to top at page refresh

i am building a website which i am publishing in DIVs... when i refresh the page.. if the page was scrolled to position X... after page refresh when the page is loaded it will be at the same at scrolled to position X... i want to force page scrolled to top at page refresh... what i can think of is of some JS / jQuery run as onLoad() f...

Is there anything I can do to optimize the tab loading in javascript ?

My colleagues have create a website and there is a webpage which contains a Tab. He Implement the tab with the following method: 1.Load all content of the page 2.Use javascript to display those group content as block and organize them into tabs. 3.when user click one tab, then acitve it, and hide all other tabs. And these functions...

JQuery - Detect support for CSS 'display: table-row-group'

So, Internet Explorer <= 8 does not accept the standard table-row and table-row-group values for the CSS display property (amongst others). I'm reticent to use JQuery's browser detection features as these have been deprecated. How can I detect table-row-group support in JQuery without parsing the browser/user-agent string? That is, how d...

passing element reference through dynamically created html

Lets say that I have a element reference obtained ala... var x=document.getElementById("ID123"); Now I want to include some function of x on a dynamically created html element ala... myWin.document.write("<input type='button' data-doit=????? value='Do It' onclick='window.doit(?????);'/>"); so that function doit() can recreate ...

AJAX inconsistency in IE 8??

This is my code: (rather, the dodgy part thereof) if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari var requisicao=new XMLHttpRequest(); } else { var requisicao=new ActiveXObject("Microsoft.XMLHTTP"); } Ok. Sometimes this works fine, but sometimes the Javascript Debugger in IE tells me this: Obje...

Can I Change the value of a textbox with Ajax

Hello, I just started in Ajax today and the tutorial i was reading showed me how to use the result to change a div. But is it possible that i can get the result and make it the new value of a text box. This way i can still edit the text box but the current value will be the ajax result. Right now i am changing the div with this line: d...

Dynamic check whether class is present or not

i have the following classes applied to a span tag : c1 i want to check whether c_2 (any particular class) is applied or not using js ...

How to capture the "JavaScript SetCookie event" in a WebBrowser?

How to capture the "JavaScript SetCookie event" in a WebBrowser? I want to synchronize the cookie to a CookieContainer when a javascript setcookie event occurred simultaneously. such as <script>document.cookie="testcookie"</script> Is there an event related to this ? thanks. Environment: .Net 2.0 WebBrowser, C#, VS2008 ...

how to extract uppercase words from a file, extract unique words

Hi all can you help me out through this question!!! ...