|
Mugdha_Aditya wrote: i think Webcore is jQuery File.
I can tell you that Webcore is not a part of jQuery or the jQuery UI. it might be part of a jQuery plugin but definitely not a part of the core jQuery.
I can see in the sight that you gave where they are including webCore and I can see where they are probably calling it with the search button but that doesn't help me with your question. I will help you with your questions but you have to do more of the reverse engineering.
just out of curiosity are you trying to reproduce what the sight does or something similar to it??
if so can I recommend that you look at node.js?? they have a great example of scrapping a page that will probably help with what you are trying to do.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
No..Not just for curiosity .. I need to collect page data of given page for some use.
Please help me.. how can i do that.
|
|
|
|
|
did you check out node.js[^] like I mentioned? they have some sample code for scraping for a web page.
in their example they scrape youtube and present it in a mobile jQuery ui listbox. maybe you can use that code as an idea to do the same thing?? I am sorry but reverse engineering another web page is a bit beyond normal question answering in my opinion.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
ohk.. thanks.
I just want to read the data in my code behind. (asp.net)
so i was tring to get website excel link..
|
|
|
|
|
|
It doesn't return anything.
The match is regex for a date 2011 11 19
This is the document path, because it just a file name, it resides in the same folder. So type in the url + filename below and see if it exist, your browser will display the xsl data.
ext_xslt: "hi_table_shares_adjusted.xsl",
Would it not be easier to just pay for a subscription to the data, it may only be $50 USD a month, and they will give you an api to fetch the information, and a username and password.
|
|
|
|
|
I have a string in the form of d+/d+/d+. For example, the string might be 1/1/2011. This string would represent the date January 1, 2011. This application uses a banker's year. That means 30 days for each and every month and 360 days to the year.
Now, if I have this string in a variable d1 what is the best way to extract the year, month and day?
Thanks
Bob
|
|
|
|
|
var date='1/1/2011';
var parseDate = date.split('/');
document.write('year - ' + parseDate[2] + '<br/>');
document.write('month - ' + parseDate[1] + '<br/>');
document.write('day - ' + parseDate [0] + '<br/>');
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
You can use the more accurare way,
var date = new Date(d1);
var day = date.getDay();
var month = date.getMonth();
var year = date.getYear();
See link here:
- http://www.w3schools.com/js/js_obj_date.asp[^]
Happy coding,
Morgs
|
|
|
|
|
I have a listbox which has some items in it and a button. I select some items and click the button. They are displayed in a table. I want these items to be displayed in the table to be unique...i.e. if I reselect those same items they should not be displayed in the table and may be give some error message. Please help me out.
|
|
|
|
|
are you trying to do this all client side??
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
u can use the jquery. Demo:
<!--
<select id='idselect'>
<option value='value_demo'>text_demo</option>
</select>
<table>
<tr>
<td>
<!--
</td>
</table>
<script type='text/javascript'>
$("select#idselect").click(function(){
$("table td").html($(this).val());
});
</script>
|
|
|
|
|
Hi,
i am having one window and overlay.. when i am clicking the link, first overlay will be displayed and iam clicking the accept button in the overlay..then new window will be opened..
now i am minimizing the window after refreshing the page when i am clicking the link...minimized windonw should be opened..instead of overlay...
xxx = window.open(URL, "tool", "width=800, height=700, left=0, top=0, scrollbars=Yes,resizable=yes, menubar=no,directories=no,location=no");
tool.focus();
xxx variable is showing null once i refreshing the page...then how can i get to know the existing and minimized window?
i have used the below code...but didn't work for my requirement..
if (!xxx.document.URL || xxx.document.URL.valueOf("tool") == 0) {
alert("hi");
}
thanks in advance
|
|
|
|
|
interesting do you think you can put together a really simple demonstrating the problem?? I have never seen this before and in part I wonder if this is limited to only certain browsers/versions.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
I think you worded it wrong.
Perhaps you have a model or panel, and when you refer to minimized, you mean hide or show.
Anyways, you have to post the page back to the server, so the server will postback the windows the way you want.
Overall, you should should do it all on the client side, and not refresh the page, and work with a modal popup, or a jquery popup.
|
|
|
|
|
My assignment is to create a javascript slideshow using an array, and an onclick button to call the next image function.I've been visiting tutorial, using google, wikipedia but I'm still not quite clear on what I'm doing. I understand the for loop, arrays, functions, onclick button but I haven't been able to put it together to make the slideshow work. Any suggestions before I turn in my homework. Here is the code. It's not long. Thank you.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>slideshow</title>
<script type="text/javascript">
//create array of image objects
var myPic=new Array("photos/picture0.jpg",
"photos/picture1.jpg",
"photos/picture2.jpg",
"photos/picture3.jpg",
"photos/picture4.jpg")
var num=0; //I believe this is my index
//I don't understand why I'm creating a new array here.
//I saw it in two different tutorials
var preLoad=new Array(5)
//Here I'm initializing the counter and preloading the images.
for(i=0;i<mypic.length;i++)
{
preload[i]="new" image()="" don't="" understand="" this="" part="" yet="" or="" the="" next="" line.
="" i="" saw="" it="" in="" a="" tutorial
=""
="" preload[i].src="myPic[i]
}
//this" is="" to="" load="" image,="" reset="" counter="" and="" end="" loop.
function="" nextimg()
{
="" if(num<preload.length-1){
="" num="num+1;
" document.getelementbyid("myimg").src="preLoad[num].src
" }
="" else{="" }
}
<="" script="">
</head>
<body>
<input type="button" value="show next picture" onclick="nextImg)" />
</body>
</html>
|
|
|
|
|
Please don't cross post. This was also posted in the Q&A section.
Read the FAQ[^] for message board usage.
Cheers!
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
|
|
|
|
|
Hi All,
I think my question is Javascript related but then again maybe not.
How do I stop plain text on my web pages from being converted into links without my permission? Lately I've noticed that many words on some of my web pages had been converted into links for some company's products. I think someone used javacript or some other language for this and I'd like to know how to stop it. Thanks in advance for your help.
|
|
|
|
|
I'm no expert but from your description it sounds like someone has hacked into your web site.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
depends on if it is occurring for everyone??
if you are only seeing for yourself and/or a few others then it could be due to a browser plugin which is looking for certain "keywords" that you have in your web page.
if you are seeing it for everyone then it is entirely possible that the company hosting your web page is adding a javascript plugin to your web page before it gets delivered.
one way that might work around it is to use an html span for displaying all your normal text. no guarantees on that though.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
The code below is suppose to auto logoff a user after 30 seconds. The problem is it works fine with 32 bit browsers but not at all in 64 bit browsers. The countDown() function gets called but it never executes the window.location.
Any assistance would be appreciated!
<script type='text/javascript'>
var secondsRemaining = 30;
var mhcTimer;
function countDown() {
secondsRemaining -= 1;
if (secondsRemaining <= 0) {
secondsRemaining = 0;
window.location='login.aspx';
}
}
function startAutoLogoff() {
if (mhcTimer) {
return false;
}
else
{
mhcTimer = setInterval('countDown();', 1000);
}
}
startAutoLogoff();
</script>
|
|
|
|
|
my guess is that the assignment operator -= is not working properly and is probably only assigning the value of 1 to each time it executes.
have you tried debugging your javascript code and inspecting the value after the assignment operator?
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
One possibility is that other task running in the machine are killing the setInterval - this happens very often in Internet Explorer to the extent that the standard advice is to never use setInterval but to use setTimeout even though it is slightly more difficult.
If you are running in a 64 bit processor, then I guess that performance is not an issue. But there are a few places where the JavaScript could be improved.
* The only way that the secondsRemaining can go negative is if you run startAutoLogoff twice as you initialise the secondsRemaining at the top and not at the start of the auto logoff and you test for that condition.
* There is a -= 1 idiom: it is the pre-/post-decrement operator (-- ). Just because some gurus don't like it in the middle of expressions, does not mean that it is verbotem as a stand alone construct.
* Since JavaScript 1.2 (c 1998), the setInterval and setTimeout methods have supported functions as arguments as an alternative to expressions. These are more efficient, support closures, and prevent faux eval expressions which most gurus hate.
* You have a lot of global variables (secondsRemaining , mhcTimer , countDown , and startAutoLogoff ). It is possible that you may have a name clash somewhere else in your code that is causing the issue that you describe.
Here is my equivalent code (I know that my layout and style offend some people):
function startAutoLogoff()
{
if (! startAutoLogoff.mhcTimer)
{
startAutoLogoff.secsRemaining =
startAutoLogoff.timeoutTime;
startAutoLogoff.mhcTimer =
window.setTimeout( startAutoLogoff.countDown, 1000 );
}
}
startAutoLogoff.countDown =
function( )
{
if (--startAutoLogoff.secsRemaining)
startAutoLogoff.mhcTimer =
window.setTimeout( startAutoLogoff.countDown, 1000 );
else
window.location ='login.aspx';
};
startAutoLogoff.mhcTimer = false;
startAutoLogoff.timeoutTime = 30;
startAutoLogoff.secsRemaining = startAutoLogoff.timeoutTime;
startAutoLogoff();
|
|
|
|
|
guys;
I need to add a hidden input at run time. I used the following code:
var hiddenInput = document.createElement('input');
hiddenInput.type = 'hidden';
hiddenInput.name = 'hiddenInput';
hiddenInput.value = 'somevalue'
this code should generate the element:
<input type="hidden" name="hiddenInput" value="somevalue" />
but it generates the element:
<input type="hidden" propdescname="hiddenInput" value="somevalue" />
could you please help me with this?
Help people,so poeple can help you.
|
|
|
|
|
This is an unfortunate but known issue. If you run this code in IE it will actually create an input with the code below:
<input type="hidden" submitName="hiddenInput" value="somevalue" />
The only way I know to fix it is appending the HTML code manually to the parent node in the dom tree. That way you will be able to set the name properly.
|
|
|
|