i was building a website using two jquery codesfirst one for the slideshow banner and the other one for the menu but only one of them works, i've search on the web and i fouond something called jquery no conflict()is this good?this is the code inside de <head> tags
I'm looking at creating my own JS library. Experience/Show employer, and I want 100% control over my websites. Anyways, I'm a huge fan of JS, yes, I said that, and I'm asking people who have done it, what are the major pitfalls and what should I look out for during the process? Experiences will vary, but trying to get some incite before moving forward.
I have a ajax program on a page on website A. And I need to let it talk to a program on website B. I tried to put website B into the url of the parameter but it doesn't work.It gives me a "[objet XMLHttpRequest]" error.here is the code on website A:
I have implement jCarousel onto my website, my jCarousel has 8 items on each page, when user click "Next" button, then jCarousel will display item 9 until item 16. I want to execute a certain codes only when jCarousel is displaying item 1 to item 8. In other word, I want to execute the codes on 1st page only. In other word, I want to execute the codes before click the "next" button. How to do that? I not sure which 1 should I use? Should I use itemFirstInCallback or itemVisibleInCallback or buttonNextCallback? I refer to this website[URL]..jQuery/jCarousel/ but there is not example or guideline about how to use them. Can anyone guide me how to use those functions?
How to validate an input field for a set group of zip codes. Basically I have a list of about 200 zip codes that are valid for this project I'm working on. I tried using the range method and wasn't able to get it to do what I needed it to do. I don't want anyone else to see what the list of correct zip codes are, this is to verify that they are local.
I'm having trouble setting up a webplayer on a site. I had set up the player receiving the files and set up a jwplayer with an xml playlist. I am then notified we won't be receiving files just <iframe> and <object> codes. The player I am using only supports this if I get a crossdomain.xml set up and that's not an option. What I need to know is how to set up a playlist that can on click play the selected <iframe> and <object> codes in a player window next to them. I am a beginner with javascript, most of my experience is html.
I want to construct HTML for a menu and I want to use DIV with UL. The data for the link and text would be coming from a web service which is a sharepoint list like so. As you can see below I want to grab the rows and and it to anchor links... $(document).ready(function() { $().SPServices({ operation: "GetListItems", async: false, listName: "MenuList", CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>", completefunc: function (xData, Status) { $(xData.responseXML).find("[nodeName=z:row]").each(function() { var liHtml = $(this).attr("ows_Title") ; $("#mainmenu").append(liHtml); }); }}); });
The desired HTML would look like so <div id="mainmenu"> <div id="header"> <ul id="navbar"> <li class="menu"><a href="#">Home</a> <ul> <li><a href="#">liHtml </a></li> <!--I want to keep adding the <li> element with new item--> <li><a href="#">Menu item 2</a></li> <li><a href="#">Menu item 3</a></li> <li><a href="#">Menu item 4</a></li> <li><a href="#">Menu item 5</a></li> </ul></li> </ul></div> </div>
I am trying to build a webapp for questionnaires where I can defined the questions in json, and have a single html page using jquery to build the UI. Since there will be a finite number of question types, e.g free text questions, multiple choice questions my code can choose how to render each type appropriately.
what is considered the best approach to build a UI like this?
I have seen the manipulation api with methods such as append() but I'm not sure if appending the html tags via strings (e.g. "<input id='answer'/>") is going to be the best way to achieve this, or whether there is a better way to define snippets of html for the different question types and copy them into the page as necessary?
I have several <img> lines in my markup that contain an onmouseover attribute, as shown below: <img id="flowersPic" class="queue" class="queue" src="media/flowers.jpg" onmouseover="playVideo('flowers.flv'); "/> . .<img id="animalsPic" class="queue" src="media/animals.jpg" onmouseover="playVideo('animals.flv'); "/> . .<img id="waterPic" class="queue" src="media/water.jpg" onmouseover="playVideo('water.flv');"/> . .</body>I want to use jQuery to build a standard JavaScript array of just the video names in the onmouseover attribute. So for the markup above the array would be the stringsflowers.flvanimals.flvwater.flvI expect the jQuery will be something likev=$(img.queue).??????.get();but I'm really not sure what should go in the ?????? area.
I'm requesting a very large JSON dataset for a table via AJAX and I'm building it on the fly with JQuery. What would be the most efficient way to build it?
I have a slider set up that navigates fine using 'next' and 'prev' buttons. There are 14 slides and I have 5 buttons at top that I need to point to specific slides in the layout. Content is static and there will always be 14 slides, and the links will always link to the same slide.So I can manually set IDs for those slides and I can also manually designate each link to go to whatever slide... but I'm not sure how to move forward.My existing slider code is very basic:
I want to build a dynamic list of items with jquery but am unsure how to add an index number to each of the items i create so that i can reference them to edit or delete them for example. So far, I have the following which just creates the items and appends or prepends them to the element depending on whether one item exists already. I just need a way of adding an attribute so I can then reference the current item when clicked and remove it. What would be the simplest method to use?
//create list items if ($('.mylistitem').length) { $('.myList-box').prepend('<div class="mylistitem"><div class="mylistitem-image"><img width="30" height="40" src="[URL]"/></div><div class="mylistitem-title">' + title + '</div><div class="mylistitem-options"><a href="javascript:removetitle();">Delete From List</a></div>'); } else { $('.myList-box').append('<div class="mylistitem"><div class="mylistitem-image"><img width="30" height="40" src="[URL]' + titleid + '"/></div><div class="mylistitem-title">' + title + '</div><div class="mylistitem-options"><a href="javascript:removetitle();">Delete From List</a></div>'); }
I am working on a rapid html prototyping framework. This would allow me (as an interaction designer) to create html prototypes fast.I have been looking in templating plugins to help with building the templates or filling them with content. For example {{ lorem_ipsum }} would be replaced with a few paragraphs of random text. This is easy to do with several plugins.
However it would be great to be able to add a bit more flexibility by using functions like {{ loremWords(100) }} which would add 100 random words which are different for each replaced item. Or something similar to add a menu or other snippets.It is probably not too difficult but so far I have not gotten it working yet. And the pluginsI have found are either too complex, requires script tags or can't handle functions.
some html here <script src=1.js></script> some html here <script src=2.js></script> some html here
I want to execute 2.js first, but I can not touch 1.js 2.js. I need to write a wrapper around them. I am thinking to add a onload of a image file after 2.js to make 1.js active.
some html here <script src=1.js></script> some html here <script src=2.js></script> <img load 1.js"> some html here
I have the below code in a form to re-form the characters entered into it into a dollar amount and also only accept numeric characters. However, when I enter the numbers "113" (which appears after the reformatting process as 1.13), it no longer accepts any other characters. I also am not able to deleted from the text box that I entered it in. I was wondering if anyone has any ideas why this is happening.
I have built a form on my network. I have put several javasripts in the form. The thing that is driving me nuts is; while codes such as highlight fields, copy fields and text limit work, others, such as Sentence case and Auto enter curent date don't.
I'm trying to code a feature for my website using DHTML where the person viewing the website can rotate between viewing the positive/negative points of the website being reviewed. This example was in the publication called Using HTML 4 by Lee Anne Phillips. Code:
so I've been trying to get the code for the scroll arrows found at http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm to work.
well I got the first set to work for the top text box on the site I'm working on. BUT THEN! haha I tryed duplicating the code to use it for a bottom text box on the same site and they mess eachother up so that both arrow sets run the same box.