|
Hi All,
Google Gears concept is used for teh project I'm working on.
It(Google Gears) supports SQLite database.
For this I'm able to insert data into the database using IE.
There is a bit problem with Firefox.
Every thing is going well with alerts in the front end. But, unable to find the records in the backend
(SQLite database.)
Can anyone please help me out on this????
|
|
|
|
|
|
Hi All,
I am displaying a anchor tag in a table which is created dynamically using Javascript.
Below is the code for it.
var EmpID = "E000011";
.
.
.
.
Td = document.createElement("td");
var anchorTag = document.createElement("a");
anchorTag.setAttribute("innerHTML",EmpID);
anchorTag.setAttribute("href","example.html?EmpID="+numEmpID);
Td.appendChild(anchorTag);
Tr.appendChild(Td);
.
.
.
.
This is working well in IE. Coming to Firefox the link button itself is not getting display.
Can anyone help me out????????
Thanks,
Shravanthi...
|
|
|
|
|
Hi,
Try :
anchorTag.innerHTML = EmpID;
instead of :
anchorTag.setAttribute("innerHTML",EmpID);
|
|
|
|
|
Thanks for the answer.....We have already done with that
|
|
|
|
|
Hi,
In the app that I'm working on, the users always need to log-in after being idle for a certain amount of time. My understanding is that this happens because of the <sessionstate timeout="20"> set in the web.config file.
Is there a way to change this so that the user's credentials will only expire when the browser is closed? Do I just set timeout to 0?
Thanks.
Rafferty
|
|
|
|
|
Rafferty Uy wrote: Is there a way to change this so that the user's credentials will only expire when the browser is closed? Do I just set timeout to 0?
No.
You can indeed set the timeout in web.config - but not to 0. The setting there is in minutes. Increase it as you will, but a note of caution: the higher the number, the higher the memory requirements you're putting on your server. In today's world that's probably not something you need to worry about too much unless your site is quite busy...
link[^]
|
|
|
|
|
I see, but is this something that I would want to do? I mean... I only want the session to live as long as the browser is open. If I set the timeout to a higher number, the session will persist even if the browser was closed and reopend right?
And should the sessions really be on the server side? (It's been quite a while since I haven't developed a web app, years ago, sessions used to be on the client side, residing on the browser)
Rafferty
|
|
|
|
|
Read the link I gave - it explains the Session Object in some detail. But the whole point of having a Session Object is to maintain a link between the client and the server, otherwise a server has no way of telling any particular browser's request from anyone else's. In effect, Session variables are cookies (that expire when the browser closes...) sent back to the server on each page request - and the server keeps a record to match against them, but expires this after the Session Timeout period (to avoid an ever increasing drain on resources.)
This is why, if you wait too long between page requests, although your "session cookie" gets sent to the server, it can no longer match it and so tells you your session has expired. And if you close your browser down, of course, your sessins cookies are lost anyway and so can't be sent back to the server on your next request.
|
|
|
|
|
I didn't notice the link. Thanks! This is very helpful.
Rafferty
|
|
|
|
|
Hi all.
How can I send a Form with AJAX (Post method)?
It means is there a free AJAX script about it
Thank you
|
|
|
|
|
Hi,
I suggest using one of these frameworks : ExtJS, Prototype, Dojo, Scriptaculous...
It would make it much easier.
|
|
|
|
|
I have a iframe in my page a.html, the iframe points to page b.html, every time when the page loaded completely, the iframe display the top of page b.html
My request is to scroll down the iframe so to display the bottom of b.html when page loaded
I can invoke below javascript when body.onload event occur:
windows.my_frame.scrollTop = 800;
it works with b.html which is on the same server with a.html
but if the src of the iframe points to the page out of the server(http://www.google.com), the script invoke run time error which means I have no right to set the scrollTop property
I can not find and solution or even any explanation on the internet, so came here. Thanks for the help!!!
|
|
|
|
|
Please explain where have you placed your script and from where do you call it. Just try to alert something in the script to check if its even called or not.
|
|
|
|
|
Hi, below is the script
function scrollFrame(x, y)
{
if (window.myFrame&&window.myFrame.scrollBy) {
alert("bbb");
var ifr = window.myFrame;
ifr.oldPageYOffset = ifr.pageYOffset;
ifr.scrollBy(x, y);
}
}
function test()
{
alert("aaa");
scrollFrame(50, 50);
}
I call it in the body.onclick()
the alert did popup, so means the the function is called but runtime error told me I can not access the property of oldPageYOffset neighter the function scrollBy(x,y) if the frame points url off site
|
|
|
|
|
You can not do anything at all to a page that is loaded from a different domain. It's a security restriction in the browser.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Yeah, I got the information.
But any idea in other ways about how to realize this requirement
|
|
|
|
|
If you want to change the scroll position of the page in the iframe, that code would have to be in that page, not in the page containing the iframe.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi
I had a font file (Channels.ttf), I installed it. Its name is CHANL.
Now I use this CSS code in my local HTML file.
.productText{
font: bold 36pt CHANL;
color: #b3c800;
padding-left: 11px;
}
But the text doesn't show with CHANL font. I test it in FF3 and Opera9.5
What's wrong with it ?
Thanks for your suggestions
|
|
|
|
|
Hi,
Use
.productText{
font-family:CHANL;
font: bold 36pt ;
color: #b3c800;
padding-left: 11px;
}
Hope this helps
|
|
|
|
|
Thanks Jaffer.
I used it but it made no difference.
|
|
|
|
|
Custom fonts were part of the CSS-2 standard, but due to the differences in browser implementation, the standard has since been dropped by many of the mainstream browsers.
In this case it might be better to use a standard font for whatever you want to do, or use an image or Flash object containing the text you want to use in this custom font, if this is more appropriate.
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
Hi all.
I saw something like this somewhere :
.rightSide searchBox{
}
What's the meaning of it in CSS ?
It means we have a something like this :
<div class="rightSide ">
<div class="searchBox">
</div>
</div>
Thanks in advance
|
|
|
|
|
Mohammad Dayyan wrote: .rightSide searchBox{
}
It's almost certainly a bogus selector. searchBox would have to be a tag name (class names in selectors are prefixed by a dot) - if you were styling a custom XML format, then that's a possibility... but not in HTML.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Thank you.
So, How we can write a class that affect any div tags within rightSide tag.
|
|
|
|