JQuery :: Working With Multiple Designers/coders. Coding Conventions?

Jun 27, 2009

So basically by using jQuery you are able to completely separate your HTML from your js which is great.

I work with templates most of the times which are maintained by designers who don't code so the code/design separation works marvells for me.

One thing that is not working in my workflow is that in jQuery, since you address HTML using CSS, the designer might feel that all of a sudden those nice divs don't need to have borders any more. So they go out and change the template, removing some classes that you have used to reference the HTML in your js code. Result: your code doesn't work anymore.

I'd like to know how people are dealing with this kind of thing. How do they make sure the designers don't mess with their classes/ids, etc while maintaining the designers' freedom to do their job.

View 1 Replies


ADVERTISEMENT

Coding HTML/JS Form With Multiple Selections?

May 20, 2011

I need help setting up a form, I want to do some pretty neat things: It will say: What countries do you want to visit? [FIELD] Part 1: I want that when a user starts typing into the field, it will suggest under things that match what you have typed so far, sort of like facebook search does. So I would need a list of recognized country names. Now for example imagine I was using this, and I typed in M, it would list under a max of 5 valid entries begining with M, if I typed in Me, it would list the ones begining with Me, if I typed in Mex, it would show Mexico. Now the user would have to click this drop down suggestion to choose it.Part2: I want once a user clicks on a suggestion, it will "pop under" the input box or somewhere, with a "x" beside it to remove it. The user can now type in another country, and when it is clicked it too appears as a sort of "icon" under the input box or somewhere, with an "x" beside it. Clicking the x removes the country from the current list of countries. Once he is done, he goes on to other fields and the selected countries remain visible. Once a user submits the form, I want to get only the countries that were visible to him.

**An alternative idea, if this one is too complicated, would be to have a drop list with all countries in it, and once a person clicks one, it will remain and a "+" sign will appear under it. When pressed, another dropdown menu will appear so the person can choose another country from the second drop down, etc. OFC all selected countries can have an X to remove them. Idk how to do this either. how to do something like this, where do you recommend I start? Any ideas? I tried searching but I'm not sure what to call this so I couldn't find anything in the search.

View 1 Replies View Related

Gallery Coding - Not Working In IE?

Feb 6, 2011

I've created a website for a client for their business, and the javascript is working in Safari & Mozilla, but not in IE. In IE you can click the image, but nothing activates. The ability to move from left to right to view images still works however. I'm wondering if having both of the javascript capabilities is fighting with the IE browser?I would love to hear of a solution - I'm not an expert in Javascript by any means.

View 3 Replies View Related

JQuery :: ID Naming Conventions And $.scrollTo()?

Sep 17, 2009

I was peaking around on the W3C site to see if I could find a clear definition of which characters are allowed within an ID.The problem is that I have a series of divs that have id="aq-1234" "cd-456" etc. I have no real control over the - in the name. What would be another way of clearly identifying an object without the id? <td id="aq-1234"> is what I have now. I've not used the rel="xxx" that I see some people use. Would that be acceptable? Clearly $("#aq-1234") is not.

View 3 Replies View Related

Naming Conventions And Ideas?

Dec 20, 2009

I wrote a generic script to handle getting a cookie value, setting a cookie value, and replicating the $_GET request. I'm wondering what I should call a script that covers both cookies and URL requests.

View 2 Replies View Related

JQuery :: Trying To Get More Efficient With Coding?

Jul 1, 2009

This is a FAQ page I built with custom jquery function that toggles the answers open/closed on click of a question, and Im just wondering if anyone has a suggestion to make the code leaner and meaner:

[Code]...

View 1 Replies View Related

JQuery :: Multiple Checkboxes Working Together?

Sep 17, 2010

I have 2 checkboxes that I want to slideDown/Up a div with. I can get 1 checkbox to do it perfectly fine...however, I can't seem to find any documentation or examples of doing it with two different checkboxes.It seems like there should an "if/then" or an "or" "and" type statement to make this happen but i'm extremely new to jquery and have no idea how the syntax is structured.Problem: Need two checkboxes to show same div... div needs to show even after one checkbox is unchecked after being checked itself.Code i've use to get one checkbox to do it: (chkframe = checkbox 1 id..... chkfound = checkbox 2 id)

$("#dropdown").css("display","none");
$("#chkframe").click(function () {
if ($("#chkframe").is(":checked")) {

[code]....

View 9 Replies View Related

JQuery :: Multiple Selectors Not Working?

Mar 24, 2010

Multiple selectors not working

View 8 Replies View Related

Jquery :: Multiple Scripts Are Not Working Correctly?

Feb 15, 2011

I added a jquery megamenu to my site, but now my thichbox script is not working correctly.trying to get it to work. I added a noconflict statement and changed $ to jQuery in my jquery.js file, but it is still not working correctly.

http:[url]....
--------------------------
<script type="text/javascript" src="http://homecomforts.com/js/jquery.js"></script>
<script type="text/javascript" src="http://homecomforts.com/js/thickbox.js"></script>
<script> [code]......

View 1 Replies View Related

Jquery :: Multiple Plugins Not Working On Website

Mar 6, 2011

I am very new to JQuery and I honestly don't know much about JavaScript programming either. I have setup this website and in it I use 2 plugins:
1) A scrollbar plugin (jquery custom content scroller)
2) easy slider (Easy Slider 1.7)
The scrollbar plugin worked just fine but when I tied in the JQuery for easy slide, the scrollbar plugin stoped working. I am pretty sure that the problem is related to the 2 different JQuery versions that I try to bind in, or is it?.

View 1 Replies View Related

JQuery :: Get The Draggable Ui Working With A Multiple Select Field?

Jul 17, 2009

Trying to get the draggable ui working with a multiple select field, but doesn't work. Does it actually work with option fields ?

$("select option").draggable();

it adds the ui-draggable class to the options fields, but they are not draggable :(

View 2 Replies View Related

JQuery :: Multiple Document Ready Calls Not Working?

Nov 2, 2011

I'm developing an asp.net MVC app, and decided to take advantage of JQuery's great datepicker using the following code in my master page:

[Code]...

My problem is that the alert block of code never fires. When I change it to occur before the datepicker code, the alert fires but the datepicker part won't work. What am I doing wrong here?

View 4 Replies View Related

JQuery :: Multiple-submit-button Form Not Working?

Jun 9, 2011

I've attached a text file that includes a form and its associated jQuery code.Before I removed the action and post from the form (as commented in the code), the form worked fine using either submit button. But now the page only refreshes - the alert in the jQuery click event doesn't fire.
____________________________________
f u cn rd ths u cn gt a gd jb n prgrmmng

Attachments
test.txt
Size : 3.31 KB
Download : 285

View 5 Replies View Related

Coding Error Only On IE / Fix It?

Oct 7, 2009

On my blog, www.finkfinance.com, it loads but with the filing Javascript error code...

Does anyone know how I can fix this? I'm not a web coder and I'm lost when I open up the stepcaraousel.js file.

View 4 Replies View Related

Using Same JS Coding Twice On Page

Dec 27, 2009

I have a nice search engine but its seems i can't put it twice on the same page:
<script language="JavaScript">
function startSearch(){
searchString = document.searchForm.searchText.value;
if(searchString != ""){
searchEngine = document.searchForm.whichEngine.selectedIndex + 1;
finalSearchString = "";
if(searchEngine == 1){
finalSearchString = "[URL]" + searchString;
} .....

How to put the code twice in the html page without creating a conflict as a result of identical codes?

View 4 Replies View Related

Coding For Both Js And Non-js Browsers?

Jul 13, 2011

I'm currently modifying a php controlled website and wish to distinguish between javascript and non-javascript browsers in order to decide which pages to display. I have a single php controller script which "includes" a number of html pages. I want to ensure that I cater for both javascript and non-javascript browsers (so functionality is the same, only the javascript pages have a far better look and feel to them).

Therefore I would like to code something along the lines of :

Code:
if (javascript_browser=='true')
{
include './javascript_page1.html.php';
exit();

[Code].....

View 1 Replies View Related

Javascript Coding Utils

Jul 23, 2005

Can anyone recommend a good editor for coding Javascript?? ie. once which
has 'intellisense' type prompting etc.

If there isn't an editor with this built-in, is there a program which does
it as a quick-ref help tool??

View 1 Replies View Related

Coding A Brute Forcer

Jul 20, 2005

Firstly it generates two numbers. One is the sum of the CharCodes and
the other is the product of multiply each of the charcodes together
and usisng the Modulus function.

If the text string is correct, the string is then used to decode (via
a relatively simple crypt) another string, which then gives you the
correct target url.

I hope that makes sense - if it doesn't, its pretty unimportant as the
question I have is as follows :

In javascript, how do I code something that allows me to cycle through
all the possible text strings. Ideally, I would like to read from a
dictionary file and then start a brute force.

Throughout each cycle, I imagine you just set input_user (in this
case) to the value of the next line in the file. For a dictionary
attack I imagine. That bit isn't too tricky I don't think but I can't
get my head around it. Maybe more coffee would help?

And I'm sure struggling to put together a brute forcer so I turn to
you guys and gals to ask if you could help me and point me in the
right direction on how to code this.

I'm assuming also that the code we end up with, would be generically
useful too as in we could vary the output (going to input_user) in
this instance to another variable and use it with another script?

View 10 Replies View Related

Order Form Coding

Mar 13, 2006

I need advice about creating an order form (I was sent here from the General Web Building forum!) and I have been told that JavaScript is the way to go - can anybody help with the following (I know nothing about Javascript really).

I have an order form and plan to have the data emailed to me (I have FormMail script installed on my server). The form will have the following fields:

Reference Number
Size / Cost
Quantity
Grand Total

Clients will enter the ref no., choose a size/ cost (radio-button), and quantity (text box). I plan to accept details for about different items. I just want the total cost to be displayed in a box at the bottom before the form data is sent to me.

Can anybody point me in the right direction of how I might go about this? Tutorials / sample code etc.

View 8 Replies View Related

Get The Coding For The Same Style Navigation?

Jun 9, 2009

Just wondering if someone can point me where I can get the coding for the same style navigation on [URL]..I know its not flash, but I'm guessing its done by javascript?

View 1 Replies View Related

Coding An Enlarge Thumbnail Code?

Feb 28, 2011

What is the secrets or tricks of coding an enlarge thumbnail code? This is what I came out with so far...

<script language="JavaScript">
function enlarge(target)
{

[code]...

I would like to do the enlarging effect like this,[URL]

View 2 Replies View Related

Coding For Watch Implementation In Our Website ?

Sep 22, 2011

Coding of java script coding for watch implementation in our website.....

View 1 Replies View Related

Searching For JS Coding With Windows Explorer XP

May 22, 2006

When I change some JS code I often want to find all the files it might affect. To do this it is easy to search the directory containing my files with Windows Explorer.

But it appears to find only words that would appear on the webpage, and even HTML coding. But it doesn't find JS coding IF the file name ends in .html.

If I change the suffix to .js or .txt it finds the JS coding, but it's not practical to change the sufix of so many files for such a search.

View 6 Replies View Related

Debug Error From Script Coding?

Jan 7, 2010

I have to debug the error for eleave system for a company. when i do the testing i define that having an extra day for the service length at the system. i don't want you to settle the problem for me, just tell me where can i find the source to know where is the problem? at least i know where the souce it, so i can repair it.

View 1 Replies View Related

Extract Coding From Html File?

Jun 2, 2011

How to extract javascript coding from a html file?

View 1 Replies View Related

Including Js File With HTML Coding

Apr 1, 2010

In my JS file, I made sure to write the necessary html code for a menu using document.write statements (I call the JS file inside a div in my webpages).I know about escape sequences and I put backslashes before every special characters but my menu still does not appear. Maybe only a simple character is missing. The code do work when I write it directly in my html so there should be no errors in the code itself. Must be in the way I put it in my JS file.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved