What I wish to accomplish at the client side is to show an image and let the user cut up an image into tiles of various heights while making sure that there are no gaps(vertically) and that all the pieces are of the same width(the widget of the original image). Initially the image will be cut up into a fixed(don't want to allow addition/...
Hello,
I'm using the google translate widget on our website, while it works fantastic for translating a single webpage, can it not be set so if I navigate to another page on our website it will tranlate it automatically? As it sits now, I have to manually click the language box everytime I go to another page.
I've noticed google sets a...
I have a table with and id of foo and I want to add rows dynamically that have a button that do something. How can I assign the listeners for the buttons dynamically using JQuery?
Thanks
...
I am trying to reload an iframe like the following:
var frameObject = $('#myFrame');
var frameAsInDom = frameObject[0].contentWindow;
var currenctLocation = frameAsInDom.location;
frameObject.attr('src', 'about:blank');
frameObject.contents().remove(); // This was a desperate statement!!
frameObject.attr('src', currentLocation).load(fun...
I need to reload a block of javascript every amount of time.. say
<script type="text/javascript">
var frame = some sort of code;
</script>
i need that block of any function to be reloaded every 15 seconds without reloading the page itself .. something like jQuery time out but i don't know how to apply it..
any idea?
...
Hi Everybody
I am getting some problem to disable close button in JQuery Diagle.
My code is like bellow.
$(document).ready(function () {
$("#dialog").dialog({
modal: true,
width:800
});
});
Thanx in Advance
...
I am working on an AJAX website where there are two search parameters. I did some mod-rewrite and checking for $_GET variables so that i can do something like..
site.com/var1/var2/ -> automatically do the search based on the parameters.
Now what I want is for people who do the search manually, to be able to have the url in that format....
Hello,
help me figure out how to set an event on the parent element (<tr>)
I can't find the error in the condition
<script type="text/javascript">
$('table tbody tr').each(function(){
$(this).find('a:first').click(function(){
if($(this).parents().get(1).tagName == 'TR') {
$(this).parents().get(1).find('tr').css('...
I have an XML document with some sample content like this:
<someTag>
<![CDATA[Hello World]]>
</someTag>
I'm parsing the above XML in JavaScript. When I try access and render the Hello World text using xmldoc.getElementsByTagName("someTag")[0].childNodes[0].textContent all I get was a blank text on screen.
The code is not returning ...
I want to display some text in UIWebView with boxes that can be expanded or collapsed. The box has the title in it, and when tapping the bar of the collapsed box, it expands. I guess there's already some cool solution for this that could be easily incorporated into an local UIWebView html file?
...
I have two buttons: btnAdd and btnUpdate. I have written a jquery function for button btnUpdate to validate some fields in the web page like:
$(function() {
$('#<%=btnUpdate.ClientID %>').click(function() {
code here
});
});
I want to do the same thing when btnAdd is clicked. So I have to write the same function again for b...
I have to draw lines around a circle (like in clock). How can i achieve this using a for loop?
...
<td class="widht200">
<input type="text" name="agg" size="2" disabled="disabled"/> </td><td class="widht200">
<input type="text" name="agg" size="2" disabled="disabled"/></td><td class="widht200">
<input type="text" name="agg" size="2" disabled="disabled"/> </td><td class="widht200">
<input type="text" name="agg" size="2" disabled="disa...
I'm running the following javacript below to place horizontal scrolling text on the banner of my website. it works in on server and not another. I get the following error:
Error: 'this.mqo' is null or not an object
JavaScript:
function start() {
new mq('m1');
/* new mq('m2');
*/
mqRotate(mqr); // must come last
}
wind...
Hi,
I am building a web application and I need to create a feedback form widget so the users can put it in their websites and all the submitted data will be saved in my web application. I also need to have authentication in the widget before the user can submit the information (using my application login form or a facebook account for ex...
Do we have any function which returns all the error messages while validating a form?
I have tried using the defaultshowerros() function but it returns the error message for the element it is currently validating. How can I get all the error messages of the whole form?
...
I'm currently having an issue with jScrollPane and a Date of Birth menu. The drop down menu within IE seems to have trouble selecting a date, month and year.
This can be seen here: http://sugarhut.janddmedia.com/gallery.php
If you scroll down to the d.o.b and attempt to select a different date from the default nothing happens. When I ...
As the title says, will this code work and will it work in major browsers?
I ask because currently I have no resources to test it, so I would appreciate some help on this.
Here is what I have (not tested):
setTimeout(window.location.history.go(-2), 5000);
Thanks
...
Is there a way through which I can get the index of list Items on click of li using javascript/jquery
<ul><li>item1</li><li>item2</li><li>item3</li></ul>
...
Is there a way to overload functions in node.js similar to _noSuchMethod_ https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/noSuchMethod?
Thanks
...