I have an error in my website and trying to resolve: Error "format exception was unhandled"
such that it work for both date time as well as with string and integer.
Please see the details and code from this link http://tinyurl.com/ydg3u7s
Thanks
...
Hi everyone
I created jsp which has 2 forms. In UI there are 2 buttons. On select of each button respective form should be displayed. But while trying to do this its not allowing me to display other form on button click. Can I have any sample code such that it will resolve my problem and i can proceed with my work. I will be thankful for...
I have a function in JavaScript which is included in the main HTML document and all embedded iframes. The function should operate in the main document. So I tried:
function f() {
if (parent === null) {
...do the real work here...
} else {
parent.f(); // Call parent
}
}
That doesn't work. Apparently, parent ...
Is there a difference between these two lines?
var url = "http://www.google.com/";
window.location = url;
window.location.replace (url);
...
Error: invalid regular expression flag
b Source File:
http://localhost/media/javascript/global.js
Line: 4, Column: 19 Source Code:
url: /home/blog,
$("#blog").click(function () {
var url = $(this).attr("href");
$.ajax ({
url: /home/blog,
type: "POST",
success : function (html) {
$("#someDiv").appe...
Using Mootools, but a generic answer is fine.
I would like to remap the 'Enter' key in a web application.
When they hit 'Enter' it should react as though the 'Shift-Enter' has been pressed.
I would just stop the enter event, and use exec.insertHTMLor its ilk, but FF's implementation is buggy on many elements.
I imagine that I could fi...
Hi Guys i plan to create visitor unique ID and named as log file, as existing now i use the ip visitor as log file name i.e. logs/127.0.0.1.php but i think is not enough because some visitor using share an ip address for PC's.
the visitor log file itself as setting place of configuration of visitors itself, so i plan to add the another u...
Hello,
I am trying to use the alsoResize option.
It works when I write this:
$(obj).resizable({ minHeight: 150, minWidth: 280, alsoResize: '.tab_content'});
but the problem is that it's resizing all 'tab_content' elements in the page.
I want it to be relative to 'obj' which also contains a 'tab_content',
I tried: alsoResize: $('.tab...
I am trying to build some sort of logger functionality in JS. Is there any API for getting its own filename?
...
Hi all,
I have yet another JS issue ...grrr. Bear with me, I am a hopeless JS newbie.
I am receiving "missing ) after argument list" error in firebug with the code below:
<script type=\"text/javascript\">
function add( answer )
{
$.post('../page.php?cmd=view&id=3523', {user_id: 3523, other_user_id: 2343}, function(d)
$(...
Hello
I have configured a filter to disable my browser back button and show the user as session expired. It is working as expected when i configure that in my application prototype but when i incorporated it to my (spring MVC) application it is not working.
I have configured my filter like this
<filter>
<filter-name>backButtonFilter<...
Hi,
I'm loading in content using an iframe via a menu with jquery which is updating
the 'src' attribute of the iframe to then load in the desired page. Each of the
pages have their own javascript includes and heavy content.
The code is as follows:-
$(document).ready(function() {
loadPage('main.php');
});
function loadPage(url) {
...
Suppose the event is e. How to know where it happened (as in position)?
I'm also using jQuery.
...
I want to be able to change text direction, per line, inside iframe's document.
Like in Gmail compose mail textbox.
(By the way how Gmail accomplish that?)
For now I define this:
iframe's outerHTML =
"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>" +
...
Are the JavaScript code snippets given below some sort of function declaration? If not can someone please give an overview of what they are?
some_func = function(value) {
// some code here
}
and
show:function(value){
// some code here
}
...
Hello,
I am having nested DIV's. Below is the Example.
<div id="one">
<div id="two">
</div>
</div>
I am calling a javascript function when we click on div one and div two.
Now the problem is sometimes the size of div two is large so that div one goes behind div two. Actually if i click div two i want to call both div one an...
hi all,
i am using php to upload the file to server, HTML and javascript on the client side.
i want to create a determinent progress bar which progress of the file upload,using javascript
Regard,
fresher
...
Hello,
I have this code to try and call a method from my controller in codeigniter,
$("#Blog").click(function () {
var url = $(this).attr("href");
$.ajax ({
url: "index.php/home/category",
type: "POST",
success : function (html) {
$("#right-content").append(html);
}
});
}...
Is it possible to somehow shorten this code:
var i=GetStringFromServer('/url');
if(i){
$('#Div1').hide();
$('#Div2').show();
}
else{
$('#Div1).show();
$('#Div2).hide();
}
In C# I'd simply do this:
bool smth=GetBool();
_el1.Visible=smth;
_el2.Visible=!smth;
Is it possible to mimick the logic in JavaScript?
UPDATE: Thank...
Hi,
I'm trying to set up a form that allows you enter a password that grants access to a specific URL.
For example, enter "facebook", and it takes you to www.facebook.com
Enter, "yahoo", it sends you to www.yahoo.com
Enter, "google",.... you get it.
If one enters anything but those words, it gives an error.
This is what I have so far:...