This is tricky..
I have two sites. Site A and site B. On another site (any site) I post an affiliate link which takes you to site A where I have a script that redirects to site B (so the first link goes to site B after going through site A)
On site A, I have a variable which I'm trying to pass to site B but without putting it in the br...
I have a div that is set to display:inline using the onclick() JS event handler. How do I make the div go back to display:none when I click any where else on the page other than the now visible div?
I've Googled about blur and setting the focus to another element but I don't know how to actually do it.
...
I'm creating a javascript loop bench mark test suite:
http://www.vervestudios.co/jsbench/
Basically, I am just looking for some feedback, ideas, bug reports, etc to improve the benchmark.
I know this may not be a SO question...if you vote to close I won't have any hard feelings. :-) (you could suggest a more appropriate forum for my...
On a page load of my website, the Twitter area shows all three portions of the "tabs". When I click say on the #HVC "tab" it loads correctly and then all three of the "tabs" look correctly.
Any ideas on why it's not loading properly on load?
Is there any easier way to do what I am trying to do without so many js files?
...
Hello,
I am using Breezing Form 1.7.1 on Joomla 1.5.19. I have my form ready, I have an autocompletion script working (fro my old PHP code) but I am not able to haveboth working toguether ...
In BF, in the custom option in "action script" section, I select "focus" and call my function. I try to copy or not the full autocompletion script....
Coming to jQuery from a functional background, I am fond (perhaps unreasonably so) of elegant chains of functions. I often find myself dealing with arrays of elements, such as those that may result from $.map, and my ability to manipulate these arrays in the DOM seems quite limited. Here's some sample code that runs through the results o...
Hello I am using jquery layout plugin from http://layout.jquery-dev.net/ .
my options are following:
<script>
$(document).ready(function(){
// create page layout
pageLayout = $('body').layout(
{applyDemoStyles: true,
spacing_open:0,
spacing_closed: 0,
slidable: false,
togglerLength_closed: 0
});
pageLayou...
Basically what I am trying to do is get access to the gps coordinates on the iphone 4. I'm not creating any type of web app. I can't find too much other than the geolocation api, but that seems to be geared toward creating web apps. Is there a javascript function that I can call from the phone itself that will return its own gps coordin...
Hello, I have an serverside script making an amount of text fields for me. When I want a user to fill them up, and submit data. I know how many fields there are, as the server also sends a count.
I am then trying to join them into a long string with a spacer between. But I am having trouble getting the value of the array.
Better exp...
I'm working on a webpage that has a javascript image rotator, but it needs to be able to handle images of different sizes.
The code that I'm using as a base has a DIV outside floating LIs which contain the images, but no matter what I try I can't seem to get the images to all be centered. The only one that's centered is the one that's ...
I need to trigger a function when the iframe loads a second time (the user clicks some link in the iframe). When the iframe page changes I can set the window location to the iframe src.
What I thought would be best is to set an onLoad attribute on the iframe element after the first load. I guess I would need the live event to tell when ...
I've a blog where I run third party ads and I refer them from my page similar to following format
http://www.<advertising_network>.com/delivery/fp?u=<username>&i=<adv>_region_11111&z=11111&n=3
If I want to show these ads at three places I have to place three such lines on my code and then browser makes th...
I just don't want the site change orientation when iPhone change orientation.
Is it possible?
...
Is there any tool which can combine all js files and minify them at build time, same for css?
We currently do it on release version but it involves lot of manual labor(I just spend 3 hours doing it and then testing).
Edit:
Just after posting this question i found this
.net java yui port
But leaving question open, please share your e...
Hello friends,
I have some text fields and a button on my aspx. The text fields are validated using required field validators. On button i have set OnClientClick() event to do certain JS operations.
The problem here is that, the JS function is called before validations are completed. That is i need to validate first and then call js o...
I have a <span> which encloses a very long message
<span>A very long message..........</span>
Can I make the span 's behavior look like a read-only and fixed sized <input type="text"> using CSS or java script ? I want the displayed message will has the fixed length displayed and user can scroll to see the whole message if the message...
i have a code from book like this :
<script type="text/javascript">
<!-- start hiding javascript
var randomNo = 0;
var gameOver = false;
var keepPlaying = true;
var guess = "";
var msg = "I'm thinking of a number between 1 to 10, can you guess it?";
var reply = "";
while ...
Hi,
I am trying to get the list from server through javascript using following
var request = new Sys.Net.WebRequest();
request.set_httpVerb("GET");
//request.set_orderby("Created");
request.set_url("http://sps2010:39153/_vti_bin/ListData.svc/MyList?$expand=CreatedBy");
request.get_headers()['Accept'] = 'application/json';
request.add_c...
I have the following code to validate some fields on a sharepoint newform.aspx. To not submit the form in sharepoint I must return a false statement to the default function PreSaveItem.
Validation:
//bind a change event to all controls to validate
$("input[title=Target Date],input[id$=UserField_hiddenSpanData],input[title=Start Dat...
While developing with Firebug I keep getting this error.
pages[x].css("z-index",x) is not a function
The function itself works fine but I'm trying to figure out why it keeps flagging this. The function is simultaneously reorganizing the array and the z-indexes.
Can i not access array variables and call functions on them like this or is...