Possible Duplicate:
Are iframes considered 'bad practice'?
Some say that iFrame is evil.
But it seems that Facebook uses iFrames for the Facebook applications, and dumping FBML (Facebook markup language).
I have never used iFrames before, but is it a good practice to use them if you want to "install" other web applications o...
Hi Everyone,
I am writing a board game script and would like to use jQuery UI's drag and drop functionality.
When i drag an element from inside DIV A to inside DIV B, is there a way of reading DIV B as the new container of the element.
$( ".draggable" ).draggable({
stop: function() {
alert(this.parentNode.id); // alerts D...
Hi,
My webpage contains :
I did a break points on the Tools.JS , but while debugging I didn't found my JS in Script Documents (Run Time mode) , and i remarked the exclamation message on my BP saying that this break point willn't be take in mind cause the JS document i...
I have found an odd anomoly with HTML text boxes and javascript that I have narrowed down to being a html/javascript peculiarity and I'm hoping someone can educate me on.
I have downloaded and implemented a calendar plugin that creates a simple layer with a calendar and on selection, passes the selected date back to the text box.
What ...
Basically I have code that checks if any checkboxes with a given class are selected. If one of those isn't, another checkbox doesn't get selected (parent).
Logic
for each checkbox
{
if this isn't checked then uncheck checkbox A
if all siblings aren't checked uncheck checkbox A
// recursion for grandparents as well.
}
Is there a Any()...
I'm trying to change the focus whenever a user presses tab on the last field. I want to set the focus on to another input field.
I have the following javascript code:
$("#input2").keydown(
function()
{
if(event.which == 9)
{
$("#input1").focus();
}
}
);
And this is my trial html code:
<div id="inputArea1">
...
I am trying to decode JSON in php I sended using an ajax call in javascript (jquery).
The javascript code:
var editSchedule_data = {
'action' : 'editSchedule',
'eventid' : $('#eventid').val(),
'pixels_per_minute' :$('#pixels_per_minute').val(),
artists: {
artist: []
...
In my Struts based application on eclipse, graphics animation on jsp page are shown in preview mode (both mozilla mode and IE) like I can click to button some text animation are display(like toggle effect) but on design mode button are not give any response.
i am using jquery,css and js.
...
I've added language:'ar', contentsLangDirection:'rtl', contentsLanguage:'ar' options to my CKEditor instance being initialized using the JQuery adapter. But the text is still left aligned.
It declares the <html> tag with dir='rtl' and lang='ar', but on each <p> tag, it has an inline text-align: left style.
How do I get rid of that styl...
Hi, I want to make a dropdown menu using jquery, but it closes even it shouldn't.
I have an element which is subscribed to the mouseenter event, mouse enters the element, the dropdown, fires up, everything seems to be ok. I go down to the item list which is list element with some content in it. The first time i change the two elements e...
Hi all,
I have a web page which has many divs (listed like table rows), and the rows exceed the length of the page (within view, before you have to scroll down). I am using some JavaScript to toggle what information is displayed on my page (for example, number of rows.)
I have made a print.css file and have manaed to edit the style tha...
Hi,
I have form where user can choose to enter more than one option. I currently show one input field and hide the remaining 4 input fields for that option.
Previously, I used link under each input to unhide the next input and link.
$(function(){
$(".show").click(function () {
$(this).parent().next("div").show();
...
Im using jquery UI to build a horizontal slider based on the demo here:
http://jqueryui.com/demos/slider/side-scroll.html
My code is pretty much identical, and works in firefox and internet explorer. It doesn't however in Safari and Chrome.
The reason is that when I click on the handle, it sometimes works, and sometimes the browser th...
I have an input type="range" that is bigger then its parent. I want to make it scroll when the slider-thumb exits the parent width.
Here is an example, when you exceed the parent width there should be a scroll. How can I do that?
http://jsbin.com/ikemo4/edit
Please note that input type="range" will only work in WebKit browsers.
...
hi ,
i have the following regex which is working fine in JAVA code
[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?
but same is not working in the Java script
can any one please tell me the solution for this
thanks Sun...
There is a form in my html code. I need to confirm if the user wants to save the current form when they are about to redirect accidentally (by clicking on links, or clicking on the back button of the browser, etc)
I know GMail has a solution for this. It confirms whether I want to save my new mail as draft when I was leaving the page.
...
I'm trying to initialize a javascript class from inside a function. The class is a mootools class in a separate .js file. To be specific, this one: http://digitarald.de/project/autocompleter/
For my application I've created a function which gets called after a user clicks on a link. This function is in a separate file and is called edit...
The whole page is a PHP include inside of a main index file. Should I be placing the javascript on the main page? or an external javascript file? Am I referencing the li wrong?
<ul>
<li class="about"><a href="index.php?about"><h1>about</h1></a></li>
<li class="team"><a href="index.php?team"><h1>team</h1></a></li>
<li class="training">...
Hello all
Short version: I'm looking for the JavaScript equivalent of Perl's
for my $key ( sort { $hash{$a}{foo} cmp $hash{$b}{foo} } keys %hash ) {
# do something with $key
}
More detail:
I have a JSON object which consists of a bunch of other JSON objects which have identical properties to each other, like a hash of hashes in ...
This has always confused me.
Everyone says that IE6 dies slowly. But what is preventing Microsoft to update all IE6 to IE8?
When a user open the IE6, if it says "Update to a newer version" then I guess 9/10 users will just click on it.
What are the obstacles from updating all IE6 so it can just die?
...