javascript

Rounded corners in buttons in IE

I need to have rounded corners in buttons (input type submit), but I haven't found any JavaScript library that would do that. Currently I use http://blue-anvil.com/jquerycurvycorners/test.html to round other elements, but I doesn't round input buttons or li-elements. I prefer jQuery plugins, because I use jQuery to all other plugins and ...

Google Maps - Panning and Zooming into areas - markers not appearing when I zoom in or pan - HELP!

Hi guys, I'm implementing some boundary based clustering on the server end of markers to display on my google maps. What I'm doing is that I have a function that is called everytime the map is moves or panned or zoomed which takes the bound of the map and makes an ajax call which in turn the server side script runs a simple sql query to ...

JavaScript print preview

How can I see print preview of my invoice generated from website. If I print with the script <a href="javascript:windows.print()">print this page</a> in the print "print this page also printed . How can I hide it? ...

jQuery Slider

I'm after the best jQuery slider solution to showcase an image and a few lines of text - layed out like the above image.. It would need to slide thru each slide automatically after a certain amount of time and also have the functionally that enabled the user to choose which slide it showed by clicking on the numbers (bottom right). A ...

How to clone a Date object in JavaScript

Assigning a Date variable to another one will copy the reference to the SAME value. This means that changing one will change the other. How can I actually clone or copy the value? ...

checking a pattern present in a string using javascript

How to check if a url or url pattern is presnt or not in a string using javascript. <script language="javascript"> var str="http://localhost/testprj?test=123213123"; var s=location.href; if(s.match('/http://localhost/testprj?test=1232/'){ alert('welcome!!'); } </script> what i need is to check the url pattern. complete code <htm...

Change URL parameters with jQuery?

I have this URL: site.fwx?position=1&archiveid=5000&columns=5&rows=20&sorting=ModifiedTimeAsc what I need is to be able to change the 'rows' url param value to something i specify, lets say 10. And if the 'rows' doesn't exist, I need to add it to the end of the url and add the value i've already specified (10). Anyone know the easiest ...

Alternatives to window.scrollMaxY?

I' trying to use window.pageYOffset & window.scrollMaxY to calculate the current page progress. This approach works under FF3.5 but under webkit window.scrollMaxY is undefined. ...

How to avoid this? Yslow -> "This page has 5 external stylesheets. Try combining them into one."

hi I have multiple themes on my website and users can just switch between multiple themes by clicking on a javascript link. I have 5 CSS files to handle the layout of all of the themes. 1 is for structure, 3 are for colors etc for different themes, and 1 common for some other stuff. my css filenames read like this .. main.css, red.cs...

Getting the client's timezone in JavaScript

How can I gather the visitor's time zone information? I need the GMT offset hours. ...

How to get screen resolution of visitor in javascript and/or php?

I would like to know the screen resolution of a visitor visiting my page so I can properly make a jquery thickbox cover about 75% of their screen. Solutions to the question or helping me solve my problem are greatly appreciated! ...

Div over GridPanel at select

Hello, I’m not really good in JavaScript and now I’m really stuck. I have an updatepanel on a form. In this updatepanel I have a grid view. When I click over the select button, I want that Panel1 be shown over the table and his corner up-left to be positioned where I clicked. I've written a function in JavaScript which saves the mouse ...

detect div content changes with jquery

change() function works and detects changes on form elements, but can I have a way of detecting when a html content was changed? This is not working, unless #content is an input fields $("#content").change( function(){ // do something }); I want this to trigger when doing something like: $("#content").html('something'); Also h...

Cross site scripting?

Hi I am trying to grab a div from another website using JS. I have an iframe that loads a page from an external site, I want to grab a div that contains a list so I can style it myself and put it on my site. Any ideas, would be greatly appreciated. Thanks. ...

Graphical web library which allows to click "arcs" on diagrams (see the screenshot)

I need a JavaScript library, or flash as well, which allows to connect events to "click" over "arcs" in graphics, see this picture: I've implemented my graphic through the JS-Graphs library but I can only intercept the "click" event on "nodes", not on "arcs". Can anybody help me?? Thanks. ...

Can I create a cross browser compatible silverlight page without code behind?

I have been developing a silverlight page using just xaml, javascript and html (I literally only have a .html, .js and .xaml file). The problem is, I just realized that it isn't working in any browser EXCEPT Internet Explorer (7 for sure). I have too many lines of code to want to add vb.net or visual c code behind and use the html brid...

Javascript error in getting code behind values

I have a web site released at facebook platform, i am using C# .Net 2008, the problem is that i am loading an array elements from code behind in javascript arary and i am loading elelment element using the following javascript code : ArList = new Array('<%=ListOfWords[0]%>','<%=ListOfWords[1]%>','<%=ListOfWords[2]%>','<%=ListOfWords[2]%...

Why are iframes so slow?

Hello gurus, I have little bit longer question for you - but hope answer will be very simple :) Let's say I have very simple page with link and iframe (just for simple example). <body> <a href="test.html" target="mframe">open link></a> <iframe name="mframe" [params] /> </body> So when you click on the link it will load test....

Displaying a Javascript confirmation dialog in Rails using server-side validation logic

I have a standard form in my Rails app. In certain situations I'd like to display a Javascript confirmation dialog when the Submit button is clicked. The catch is that I need to determine whether or not to display this confirmation on the server side as opposed to doing this in Javascript before the request is submitted to the server. ...

Customising Google Streetview embed

Hiya, I'm using streetview as an embed in one of my pages. I'd really like to remove the streetview controls though, or at least change their position to the top right, instead of the default top left. My javascript code is controlling the embed, and the API documentation suggests that "streetview" is just another layer on top of the ...