Hi, I'm sorry if this question has already been asked, but I searched
for the term 'create element' on the jQuery Google Groups and didn't
find the answer. I basically want to create html dynamically and be
able to add it to my webpage. Suppose I have the following html:
This is the first paragr
West
The way that I was doing it was to store the HTML into the database.
Once I get to work I can get an example if you would like?
Thanks
Chris Owen
Sent from my iPhone
On 8 Jan 2010, at 06:52, West415 wrote:
bump...
West415 wrote:
Hi,
I have a page where users can drag and sort
bump...
West415 wrote:
>
> Hi,
>
> I have a page where users can drag and sort a set of divs. Each div is
> like a widget and the code below allows you to move divs around pretty
> easily. The problem for me is I want to somehow store and retrieve the
> position each div is in so when the pa
I am using the jquery simplemodal code to display a div on a page.
I am pretty much calling .modal(); on the div, which has a class on
it, and I'm styling up that class - some issues though:
1. How do I add a close button. Have seen that I can add a closeimg
style - but I can't get anything with
see here:
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F
http://docs.jquery.com/Plugins/livequery
Essentially, you either need to deal with this in the load() success
callback or use live(). However, i can't remember if live() works for
the
Well the xml file is not on my server, but I'll try to shoot them an
email and let them know, they should set the headers.
On Jan 7, 4:44 pm, Jules wrote:
> As suggested by Steven, set the ContentType to "text/xml". I don't
> know how to do it in php, but here is the snipped from data source in
The easiest way to do that is simply make the background to that area black.
Then the white text shows up no matter what. It would eliminate the need to
do extra work with scripts.
DED
On Tue, Jan 5, 2010 at 5:09 PM, annie wrote:
> I'm very very new to jquery so please be patient with my questio
As suggested by Steven, set the ContentType to "text/xml". I don't
know how to do it in php, but here is the snipped from data source in
c# .
StringBuilder sb = new StringBuilder();
sb.Append("");
sb.Append("");
sb.Append("74.125.45.100");
sb.Append("OK");
http://docs.jquery.com/Events/live
On Thu, Jan 7, 2010 at 2:01 PM, CreativeMind wrote:
> hi,
> i'm appending a child div in a parent div. parent div has already
> child div's which have classes ws_c1 and plus.
>
> $('').addClass('ws_c1').addClass('plus').appendTo($
> ('#'+'parentdiv'+counter));
I don't get any error. Have you fixed it since posting yesterday?
-- Scott
hi,
i'm appending a child div in a parent div. parent div has already
child div's which have classes ws_c1 and plus.
$('').addClass('ws_c1').addClass('plus').appendTo($
('#'+'parentdiv'+counter));
but when i try to do this
$(".ws_c1.plus").click(function() {alert('test');});
It works on other ch
I have done a lot of searching for this answer but I can't quite find
what I am looking for. I have a form with multiple fields - name,
address, email, etc. When you make a field required or email you can
specify the message to appear in a text summary or as text next to the
field. What I would lik
That's what I was thinking. I'd have to set some sort of flag in the
success callback since it's executed first, and then have the complete
reference that flag and process the error accordingly.
Thanks for your help, Mike.
On Jan 7, 2:58 pm, Mike Alsup wrote:
> > I was curious if there was a wa
> I was curious if there was a way to hit the current xhr object in the
> success callback. I've been tinkering with it, and have been unable
> to figure out how to do that.
No, but you can access the xhr in the 'complete' callback.
Superfish is a jQuery plugin for progressive enhancement of suckerfish-
style HTML/CSS drop-down menus. It can be found at
http://users.tpg.com.au/j_birch/plugins/superfish/
The original Superfish plugin used jQuery's hide() method, which sets
an inline css attribute of display: none on the hidden
Hi,
I am fairly new to jquery, jquery validation and competely new to
JSON. I was wondering if anyone could provide or point me to an
example of a use of the remote method of the validation plugin that
can display the error message returned by the remotely called php
file.
I have an input field
I was curious if there was a way to hit the current xhr object in the
success callback. I've been tinkering with it, and have been unable
to figure out how to do that.
The reason I ask is because I am trying to debug an application I've
been working on, and sometimes the response XML is not forma
I resolved the problem by just removing $ from input type. means,
appended string rather a jquery object and it works in ie and ff.
thanx
On Jan 8, 1:01 am, CreativeMind wrote:
> Actually this line
> $(sourcedropdown).append($(' > jQuery1262891096843="258">
> > > jQuery1262891096843="259">
> >
Actually this line
$(sourcedropdown).append($(' jQuery1262891096843="258">
> jQuery1262891096843="259">
> Select One value=0>Adobe Systems Inc.
> --- in ff---
>
>
>
> Select One
>
> Tech Data
> Corporation type="hidden"> type="hidden"> type="h
I am using v1.3.2.I can't show the test page because i'm using
localhost. the generated html of that div is given below.
---In IE---
Select OneAdobe Systems Inc.
--- in ff---
Select One
Tech Data
Corporation
On Jan 8, 1
I'd suggest reading through this blog post:
http://jqueryfordesigners.com/image-cross-fade-transition/
On Jan 7, 2:14 pm, Glen Healy wrote:
> no more like a slowdown in the transition between the images. hope that
> makes sense. lol. Like if you move over it now really fast it is "twitchy"
> im
at first glance, you may be expecting the :hidden selector to work
differently than it actually does:
http://docs.jquery.com/Selectors/hidden
the original implementation, before 1.3.2, checked for either
display:none or visibility:hidden, whereas the new implementation
selects elements "...if it
no more like a slowdown in the transition between the images. hope that
makes sense. lol. Like if you move over it now really fast it is "twitchy"
im thinking what if it were possible to add like a ms or 2 to the actual
hover effect and they will blend more.
instead of fading out they fade into on
like so?
http://jsbin.com/amuma3/edit
http://jsbin.com/amuma3
On Jan 7, 1:45 pm, Glen_H wrote:
> Here is another question if you have the time,
>
> now that the image changes on hover, can I add a fade animation so
> that it fades to the hover image as opposed to switching back and
> forth? or w
I have a modal form that I want to validate.
The modal is based on the simple modal plugin and the validation is
based on validation plugin.
The validation works well on a regular (non modal) form. ANy ideas?
jQuery.validator.addMethod("zip", function(value, element)
{
> Figured it out. The problem is, in fact, with the easing. Cycle has a default
> easing set, but setting it to 'linear' fixes it and makes the entire thing
> smooth.
Hmm, nice.
Figured it out. The problem is, in fact, with the easing. Cycle has a default
easing set, but setting it to 'linear' fixes it and makes the entire thing
smooth.
malsup wrote:
>
>> Hey, I'm using the JQuery cycle plugin (http://malsup.com/jquery/cycle/)
>> and
>> I have images set to auto-scroll
On Thu, Jan 7, 2010 at 11:04 AM, Andre Polykanine wrote:
> var validator=$("#myform").validate( { });
>
> $(document).keydown (function (e) {
>if (e.ctrlKey && e.which==13) { validator.form(); }
> });
>
> then I'm trying to submit. If I do something wrong (for example, leave
> a required field
Hi,
I have a dropdown which diplays a companyname with 4 hidden inputs.
these hidden input values are set in text boxes on selected index
change of dropdown.
like this
var sourcedropdown = $(e.target).parent().parent().children(":nth-
child(7)").children().eq(0);
$(sourcedropdown).append($('')
Here is another question if you have the time,
now that the image changes on hover, can I add a fade animation so
that it fades to the hover image as opposed to switching back and
forth? or would I have to create a whole new function?
On Jan 7, 1:38 pm, MorningZ wrote:
> here's your exact code w
wow. thank you for your patience with me lol. This jquery is cool and
all just a little stressful at times.
thanks again for your help
On Jan 7, 1:34 pm, MorningZ wrote:
> ready to know what a major problem is??
>
> your "script.js" is:
>
> $(document).ready(function() {
> // do stuff wh
here's your exact code working
http://jsbin.com/aguji/edit
http://jsbin.com/aguji
On Jan 7, 1:34 pm, MorningZ wrote:
> ready to know what a major problem is??
>
> your "script.js" is:
>
> $(document).ready(function() {
> // do stuff when DOM is ready
> $("#footer #footer-contain #availabil
The following javascript works just fine when called from Firefox, but
IE 6.0.2900 chokes when it sees it:
$("#data_entry").load(myurl);
html ---
The exception I'm getting is:
Exception line 1642
Error: Exception thrown and not caught
I'm quite new to jQuery. I've been searching
jQuery group,
I've been using jQuery for my website, and have come up against an
obstacle. My page dynamically loads comments from DISQUS, and as a
result the comments take a few seconds to load. I need to make some
jQuery code that runs a function once the comments (which are of class
dsq.comme
Hi,
I have a question about css. I want to dump out all css attributes and
values of a UI element, how to do that in jQuery?
Thanks in advance,
John
ready to know what a major problem is??
your "script.js" is:
$(document).ready(function() {
// do stuff when DOM is ready
$("#footer #footer-contain #availability img").hover(
function() {
$(this).attr("src", "./images/avail_hover.png");
},
> Hey, I'm using the JQuery cycle plugin (http://malsup.com/jquery/cycle/) and
> I have images set to auto-scroll horizontally. The plugin automatically
> eases the slides (I've tried turning easing off), and I'm wondering if
> anyone knows of a way to get them to just continually move horizontally
on the right of your screen go to edit my membership
On Jan 7, 1:01 pm, Darren Bernard
wrote:
> Can somebody tell me how I can Unsubscribe to the mailing list Please!
>
> _
> Got more than one Hotmail account? Save time by li
Can somebody tell me how I can Unsubscribe to the mailing list Please!
_
Got more than one Hotmail account? Save time by linking them together
http://clk.atdmt.com/UKM/go/186394591/
I put up my site quickly here: http://www.glenhealy.com/
the image should be at the bottom in the footer, if you can view the code,
maybe you can see what the deal is?
i used the exact code used in the example so there has to be a file issue
On Thu, Jan 7, 2010 at 12:44 PM, MorningZ wrote:
> i
var $target = $(this.hash);
$target.addClass('SomeClassName');
...
On Thu, Jan 7, 2010 at 10:02 AM, metalmini wrote:
> Euh... oke and in what way do i implement that? Can you give me a
> example?
>
> Thanks for the reply btw :-)
>
> On Jan 7, 1:01 am, brian wrote:
>> $target.css('...')
>>
>> Or,
it changes it
http://docs.jquery.com/Attributes/attr#keyvalue
attr( key, value )
Set a single property to a value, on all matched elements
going a different direction isn't the solution, something else is
wrong.
and your "current one" of "img src" as an attribute name is not going
to work,
Can we keep different color for different menu items . If yes Can you
please tell me how to do it.
does the attr function "change" the img source or does it "add" it in?
Perhaps I need a different function to do it? is that possible?
i am going to try to add a the remove attr function first, then run
the current one and see if that works...
On Jan 7, 12:25 pm, MorningZ wrote:
> Perhaps the pa
Perhaps the path to the image itself isn't "./images" ?
Other than that,maybe some more code to show or better yet a live, non-
working page..
Rest assured the "hover" event does work, and the way to set an
's source is $(this).attr("src") ... there's something else not
seen/talked-about/tho
The click method has only one argument - the funcion that is going to
be executed on every mouseclick.
Also, you can use the show and hide methods as shortcuts for
manipulating the display property.
The toggles method toggles the display property between the states
"hide" and "show".
$('#top-bar
I have it now set up like this:
$("#footer #footer-contain #availability img").hover(function () {
$(this).attr('src', './images/avail_hover.png'});
}
it still isnt working. I orig. had it set as src. but nothing seemed
to be working then so i messed around and changed
Hello everyone,
I'm trying to submit the form normally as well as by pressing
Ctrl+Enter. Yepp, the same task.
What I'm doing is the following:
var validator=$("#myform").validate( {
// tralala, here go the rules, error
Unfortunately that didn't work either. Is there another approach that
I should be taking on this?
On Jan 6, 3:20 pm, Johan Borestad wrote:
> I think you just forgot the last brackets on your hover method:
>
> $("div.tvbutton").hover(function () {
> $("div.tv").trigger('hover');
>
> }) <---
$(this).attr({'img src' : './images/avail_hover.png'});
there is no "img src" attr, but there is "src", so
$(this).attr('src', './images/avail_hover.png');
and there's a second event to hook on the .hover event is when you
mouse off, so use that event to revert back to whatever image was
there
In my footer I have a sign where I want it to say one thing regularly,
and then when someone hovers, i want it to say sometyhing else. I
basically made 2 images, and I just want to switch images on the
hover.
here is my code I used and its not working.:
$("#footer #footer-contain #availability im
That works in IE8, but in FF 3.5.3 I get undefined in the alertbox.
I've disabled adblock and flashblock, so its not those interfering. I
dont get anything in the error console either.
The code I had posted earlier doesn't work in FF 3.53 either. I'm
accessing it by running it on my desktop with t
Thanks for help, with your suggestion, I made it work.
Hey, I'm using the JQuery cycle plugin (http://malsup.com/jquery/cycle/) and
I have images set to auto-scroll horizontally. The plugin automatically
eases the slides (I've tried turning easing off), and I'm wondering if
anyone knows of a way to get them to just continually move horizontally
(witho
Im trying to remove parent of at the click event, and the function
remove needs to be within the if statement.
Hi I have a weird problem using the form plugin on a login page on my
site, the form html is:
Form elements.
I'm using dologin.php to check the login and password on my DB if the
login and pass is ok it returns 'ENTER', if its correct but the user
is disabled it returns 'DISABLED' el
oh yeah, the "custom" has the functionality built in... i was thinking
"core".. my bad
On Jan 7, 9:18 am, Mike Alsup wrote:
> > None of those are redundant, but three tips:
>
> Actually all of the individual jquery UI files are redundant with
> jquery.ui-1.7.2.custom.min.js if that download was c
Thank you very much, worked as intended :)
On 2 ene, 15:18, aquaone wrote:
> You need to trigger the update event for the table for tablesorter to
> rebuild the cache. At the bottom of your .delete_button click function, add
> $("#shop_list").update(); and it should fix your problems. For more
>
Euh... oke and in what way do i implement that? Can you give me a
example?
Thanks for the reply btw :-)
On Jan 7, 1:01 am, brian wrote:
> $target.css('...')
>
> Or, better:
>
> $target.addClass('SomeClassName');
>
>
>
Hi,
I have problem with jquery, when I do a append() call to in a post()
call internet explorer still not print the append()...if i write the
same result out of the .post() still work with no problemany
ideas? this problem is killing me xD...I hate internet explorer but
here at work some users
> Someone wants me to use FULL DIRECTORY PATHS for every page
Assuming you're generating your html on the back-end, just use a
variable for the base URL and no worries.
Stict with UNIX through the learning curve and I guarantee you'll
never go back, at least not voluntarily. :)
Nathan
Erik R. Peterson wrote:
Hello everyone,
Someone wants me to use FULL DIRECTORY PATHS for every page and script for a website I just
completed. I argued that it would slow down the website for users... I prefer relative paths such
as "/src/" and "/img/".
Am I wrong to say this?
Is there rea
Hi Erik,
I'm not really sure about speed, and I can't speak about Unix (I'm a Windows
developer), but one thing I can tell you about relative paths vs. absolute
paths is relative paths will allow the site to be moved easily.
For example, if you develop the site on one machine, test it on another,
I am a total newbie when it comes down to Jquery, still in the
learning process.
$(document).ready(function(){
$('#top-bar-login li.current').hover(
function() { $("#top-bar-login ul").css('display',
'block'); },
function()
> None of those are redundant, but three tips:
Actually all of the individual jquery UI files are redundant with
jquery.ui-1.7.2.custom.min.js if that download was configured
properly. Try with just these three: jquery-1.3.2.js,
jquery.bgiframe.js, jquery.ui-1.7.2.custom.min.js
None of those are redundant, but three tips:
1) make sure you are using the "minified" versions in the production
enviroment
2) if you are really going to put the files together, which will be
minimal gain, make sure that each and every section ends with a semi-
colon, so the code doesn't get run
jQuery 1.3.2
jQuery Autocomplete plugin 1.1
I would like to
- keep the suggestion list when user click outside the text field.
- hide the suggestion list when user select item from the suggestion
list
I found a possible way, remove these lines of codes
if (!config.mouseDownOnSelect) {
hid
Joel,
Thanks for a great module. Everything seems to work well except I
can't get the submenus to "hide" with the Suckerfish effects. All
submenus are displayed with no mouseover. I must be doing something
terribly stupid because no one else seems to have this problem!
Forgive my dumb question, b
Hello everybody!
I'm trying to use a custom method for validate one of my input's form,
but no way.
Neither the 'additional-methods.js' included in the plugin pack work
for me Seems to be ok, but no idea.
This is a resume of my code:
-JAVASCRIPT-
$.validator.setDefaults({
submitH
Joel,
I forgot that on my site I installed SC jQuery, because that's the
only version I found for Joomla. Is that OK, or do I need a different
version?
Hello,
My site is loading very slow with all js files imported, so I
putted all in one single file. I have a question. I have some file
that I think I don't need it. I'm loading this files:
jquery-1.3.2.js, jquery.bgframs.js, jquery.ui-1.7.2.custom.min.js,
ui.core.js, ui.draggable.js, ui.resiza
When you make an AJAX call, what "this" references changes
$('a.del').click(function() {
var $parent = this.parent(); //i assume you want the parent of
the
$.post('/img/del.php') ,
{'img': img },
function(){
if (e.status == 'deleted') { //
if you didn't change ANYTHING, it's possible one of the libraries you
are including added another JS library like scriptaculous that is
messing up your $ reference.
Hi
Thanks a lot - The problem was indeed in a css stylesheet but wasn't
related to any conflicting names. Instead we have a specific IE7-
instruction which looks like this:
body { height: 100%; overflow-y: auto; }
Autosuggest seems to be incompatible with the "overflow-y: auto"
property and val
Hi there,
I want to construct an imageslider myself but i can't find the right
method to iterate over my array of images.
The array is grabbed from div#images which only contains images.
Roughly the content of my function looks like this:
$(".next").livequery( 'click', function() {
$( "#ima
Sweet! Thanks for the help!
syntax a: not working, the parent of current element not being removed
$('a.del').click(function(e){
e.preventDefault();
$.post('/img/del.php') ,
{'img': img },
syntax a: not working, but its what I have in mind.
$('.del').click(function(e){
e.preventDefault();
$.post('',
{ori: response.img_name ,
thumb: response.thumb_n
Hi,
I have witten the following lines of code:
var s=document.createElement("script");
s.type="text/javascript";
s.src="http://api.intensifier.de/js/show_ads.js";;
$("script:contains('era_layout')").after(s);
After the ebay-script with the era_vars, the intensifier-script should
be inclu
Your css probably conflicting with autocomplete plugin's some css/ css class
names..
Check carefully...
--
http://ranacseruet.blogspot.com/
I have now generated a static copy of the web page containing the
autocomplete dropdown html code (the div in the bottom of the page).
When I load this into IE7 there are no problems. It only fails on the
active page.
On Jan 6, 3:39 pm, Rune wrote:
> Hi
>
> I use autocomplete newest version on
>
Aha, thanks for trhe extra info!
Some other things are clear to me now!
Thanks again!
On Jan 6, 9:17 pm, Scott Sauyet wrote:
> On Jan 6, 2:17 pm, knal wrote:
>
> > BTW It also works without the " return this.each() { " part!
>
> Yes, but that allows you to continue chaining, i.e.
>
> $(this
82 matches
Mail list logo