I have a certain textbox and I want to add a div after it.
I've tried the .append() function, but that only adds the div in the element.
For example, I have:
<input type="text" id="bla"></input>
and I want to change that into:
<input type="text" id="bla"></input><div id="space"></div>
...
I have a button which calls jquery.ajax and submits POST data. I need to get user text from a textarea. So far, no problem. However now i need to set the post data. I have a string in the form as k=v&k2=v2 etc and then i have this user text. I obviously cant write + "&usertext=" + usertext since the text may have code and &kxxx=val which...
Hi,
I'm using corners plugin from here - http://malsup.com/jquery/corner/
It works fine in Chrome and FF, but IE8 says that there is "Unexpected method call or property request jquery.corner.js, string 147 symbol 17.
Here is the 147th string from plugin
bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild);
Here is se code...
I've got a set of form validation rules that I wrote with the jquery validator plugin. Since I have to repeat the same validation on the server side, I thought it would be nice not to have to rewrite my rules in PHP. If the rules were simple field=>rulename=>value I could just store them as JSON and decode them into PHP arrays. Unfort...
I'm not an expert of jquery and i need help to porting this function
auto_complete: function(controller, focus) {
if (this.autocompleter) {
Event.stopObserving(this.autocompleter.element);
delete this.autocompleter;
}
this.autocompleter = new Ajax.Autocompleter("auto_complete_query", "auto_complete_dropdown", "/admin/" + controller ...
Hi,
I'm trying to create a modal popup effect using JQuery UI 1.7.2
Basically I need a normal Error widget to pop up with the rest of the page blocked out.
We're using IE6 at work and there are no ways to upgrade.
Currently I'm trying this.
<div id="errorPopup" style="display: none;">
<div class="ui-overlay">
<div class="ui-widget...
I'm using PHP to generate some HTML,
<?php
$news = NewsDat();
foreach($news as $single_new)
{
echo $single_new[0] . " - " . $single_new[2] . "\n";
}
?>
I want to insert the results of this to a specific div in the page <div class="main">.
How can I take the results and insert it into that div?
I cant edit the body of the page ...
I want to have a client side Plus / Minus system where a user can click the plus and a value is incremented by 1, minus and the value is decreased by 1, the value should never go below zero and should start on 0. Is there a way to do this simply in jquery? All the jquery plugins look at bit OTT for this operation.
Any help appreciated, ...
Does anyone knows where can i find the unpack version of the Jquery.fancybox-x.x.x.pack?
I did fixed by hand the code indentation to tried to understand it better, but still, is a little hard...
...
I am looking for a javascript based image slideshow solution. Requirements I received:
A few images are added to the slideshow, and it fades one image after another and then starts again from the first image
There should be a navigation in order to manually go to the next / previous image
There should be the option to pause the slidesh...
Hello,
I have a indefinite amount of in-line elements being output. Now, depending on browser width, some elements will, of course, wrap to a new line. Is it possible to detect and single out these rows of elements or does the dom just see it as one large line?
Thanks for the help!!
EDIT: Trying to detect wrapped elements via offset h...
Is there a way to have a declaration such as the following persist to all matching elements that are later added to the DOM?
$("a.my-class").replaceWith("<span>Replaced</span>");
Something along the lines of...
$("a.my-class").persist().replaceWith("<span>Replaced</span>");
(Persist is a fictitious method, that I hope conveys what ...
I would like to set a value:
$('#swfupload').swfupload({
upload_url: "uploadResume.aspx",
file_post_name: 'uploadfile',
post_params : {"session_guid" : [HERE]}
});
...where [HERE] is the placeholder for my value, from my code behind in ASP.NET before the page is rendered. I generate a guid, and I need ...
First let me say that I learned scripting by myself so my approaches may be a bit weird.
I want to call images into a div using AJAX but with a thickbox tag so when the image thumb is clicked the big image is displayed using the Thickbox (jQuery).
Here is the example page: click here
OK, please click in the menue on "photo" and then o...
Imagine search bar on html page, it has, say 4 controls on the same line, each wrapped in DIV.
E.g. a few listboxes on the same line:
searchbyX, byY, byZ, byN
After some clicks, some of these controls are hidden, some are displayed (using JQuery).
The problem is that I want each control to keep it's place, but if I hide it's left neighbo...
I'm using the following jQuery code to try and access the delicious api, but it's not working. If I go directly to the api url in the browser it returns the xml as expected, so the url is correct.
Anyone got any ideas what's up? Could be that it's https, but teh jQuery documentation doesn't explicitly forbid this.
$(document).ready(fu...
I'm using JQuery Autocomplete (bassistance) and have run into a problem.
If the mouse rolls over one of the autocomplete suggestions and the user hits the return key (rather than clicking to make selection), the form is submitted and goes to whatever link was rolled over at the time.
This is a problem as people click in the textbox, and...
I just started a new job, and my first task is to clean up the Javascript code for the site - the problem is that there are two JS libraries being used (jQuery and Prototype / Scriptaculous).
I'm trying to figure out what's being used where, but it's pretty difficult, especially not being very familiar with the code.
Does anyone have a...
I have a horizontal line of div elements that are display:inline-block and top aligned.
I can add elements, and the line expands. When I remove elements by animating the width to 0, the line doesn't retain it's single line appearance, but rather forces a second line to temporarily appear during the animation.
The behavior is the same i...
I'm in the middle of building a web app with heavy use of jQuery plugins and lots of bindings.
The backend was developed with a template system which only allows (as of now) to place all scripts in that one HTML file. We will use YUI compressor to merge all these into one.
Now, for bindings, how bad is it to have binds in an HTML file ...