Hi all, looking for some help. I found this script that does almost everything i need. I have a form that has a small section of two radio buttons when you click on the first one i need a series of text boxes to open wrapped in a div box and that happens great, but when the other one is clicked i need them to go away, the whole div box. also the text boxes also have some hidden fields attached to them will not not pass to the shopping cart if the text boxes are disabled. here is what i have so far. placed in head Code: <SCRIPT LANGUAGE=&q
Articles similar to toggle and untoggle:
erratic behaviour onMouseDown
I have 9 boxes which I can drag around an invisible grid however when the onMouseDown function is called for the first time on each of the boxes, they behave erratically, then once
all boxes have been clicked once, the entire script works as it should. I've tried using default values when declaring the variables however it doesn't seem to do anything.
Does this happen with anyone else, anything obvious I'm missing.
Code:
<html>
<head>
<script language="javascript">
var x;
var y;
var org_top;
var org_left;
var diff_org_top;
var diff_org_left;
var element;
var element2;
var being_dragged = false;
var newleft;
var newtop;
Css boxes text overflows
Hey,
Take a look at the following page:
http://www.freemanholland.com/cow/public_html/
i am pulling out the boxes from a database, some of which have text, image, and a link the image navigates to, and some of which don't have text but have a link and an image.
If you notice the first box has text inside .box-content. however i cannot set a width as the boxes are of different widths.. what i have had to do is set a min and max width on .box-content. But i can see a problem here where if the smaller boxes have text inside the text will overflow..
How can i fix this so that the .box-content text fits perfectly inside the box, no matter what the size of the box is?
ThanksTwo CSS questions
I actually have two requests. First, the form below is supposed to have two containers in a form that should run across the page like -- container1 OR container2. I thought I understood the concept of moving boxes around and aligning them, but I think I have tried every combination of display, float and position and can't get them to do that so I am missing something. That's the easy one. And the code should be loadable for viewing as is. I put boxes around the container and the text just to see where they are.
Second, I would really appreciate for someone to take a look at my css markup and critique it from an efficiency standpoint and a semantic standpoint. Too many divs, meaningful classes and id's, etc. I would really appreciate it.
Thanks
How to pass new value to hidden input
I'm working on an autocomplete script and have it working close to what I need, however I have an issues.
I need to be able to pass a new value to the hidden field input, as it is now only selected values from the auto suggestions get's passed. I'm guessing I need to create some type of onchange or onclick event to do it but I'm not 100% sure how to go about it correctly. My first thought here is I should add a small + icon when clicked will add the new value.
Here's the script I'm using:
Code:
/*
* jQuery Plugin: Tokenizing Autocomplete Text Entry
* Version 1.1
*
* Copyright (c) 2009 James Smith (http://loopj.com)
* Licensed jointly under the GPL and MIT licenses,clear text in conditional text area when radio unchecked
Hi,
I have a form setup so that selecting a radio button opens a specific text field. The problem is if the user starts to enter information, then switches to a different radio button (perhaps they chose the wrong radio to start), the text they already started to enter on the previous textfield doesn't get cleared. This will be a problem later when inserting to sql.
Here is a summary of the code:
Code:
<head>
<script type="text/javascript">
function doClick(objRad){
if (objRad.value=="0"){
document.getElementById("textbox").style.display='block';
}
else{
document.getElementById("textbox").style.display='none';
}Command line parameters using <script .. src=script.js?param>
does any expert know how to pass parameters in the <script ..> tag?
for instance;
Code:
<script type="text/javascript" src="script.js?param1=val1¶m2=val2&etc">
in the javascript script.js, how would we read the params after the question mark?
for example, google this; google shopping cart /v2_2/cart.jsBoxes not showing as links
Hi,
Take a look at this page:
http://www.freemanholland.com/cow/public_html/
You will notice a series of boxes, some of which should link through to other pages. I viewed the source the html shows the box as links but i can't click on the box?
It's like its hidden underneath a layer or something?
Any ideas what it might be?
Thanks
