|
Ok first of all about my browser and system details . Browser is IE 6.0 and system is P4 2.8 GHz with 512MB RAM.
Please note that i am not opening XML and HTML pages in seperate "Browser windows". I have a main browser window, from which i open an IFRAME whose source is set to a very simple XML. it is
xyz
Then i open another IFRAME on top of previous IFRAME in which i load a simple HTML page. HTML page contains just two text inputs and two buttons. Thats it.
When i move this IFRAME containing HTML on top of XML there is lot of flickering. BUT if i move it on some other IFRAME with HTML there is no flickering.. to me it seems like IE bug .. may be i am wrong..
Please now tell me what do u suggest?? how to prevent this flickering??
Regards
Shoaib Khan
|
|
|
|
|
Hi All,
Im trying to come up with a definitive listing of why a good directory structure is important in web development. Are there any good articles, posts, standards out there that reflect this. Your thoughts on the matter would also be greatly appreciated. Apart from site remodelling and future expansion can anyone suggest other imperative reasons for ensuring that directory structure conform to some sort of standard. Thanking you in advance.
"Im cold and there are wolves after me"
|
|
|
|
|
I am a newbie, so this is probably very basic.
I created a small web application and rather than using VCS (version control software), I simply created different folders as I made changes to the web application. I ended up with a series of folders such as WebApp1, WebApp2 etc.
This simple approach was working fine and was storing the different versions, until today. Now every folder contains the same code.
I think this may have happened because I opened up two versions accidentally in VS.
Is there a way that I can simply use folders and make sure that they do not all change as I change code in another?
Cheers,
J
|
|
|
|
|
hi all, i have this problem, i'm creating a control from the HTML Table element:
* I need to hide columns and show others based on client demand.
* Sure i want to do all this on the CLient-Side.
* I do this by hiding all the cells for the required column using the "style.display = 'none'" code.
* The above code works fine but when the column contains lets say about 100 cells or even much more this process take a very long time may be a minute so imagin that i need to hide more than one column.
* I think the problem is with the rendring time that is spent on hiding each cell and render then hide a cell and rerender.
* What i think that i need is a way to stop rendring until i set all the cells to the style.display = 'none' then render only once.
* This method is well known in languages like C++ and C# and many others but i don't know if its available in JavaScript.
if anyone know how to sole such a problem please help.
thanks for reading.
|
|
|
|
|
So you've got something of a spreadsheet, which you wish to allow client side interaction. Users should be able to hide/display columns???
The problem your facing is in rendering times?
The way your doing this now is setting each cell's display to none or block???
Well if your doing what I think your doing...your probably right about rendering times. If your iteratively hiding each cell, then the layout engine is recalculating and rendering the document each time you change a cell. So I think it's probably recalculating and rendering each iteration, so instead of doing this iteratively, why not just hide a single element which contains the cells???
<table>
<tr>
<td>Column1</td>
<td>Column2</td>
<td>Column3</td>
<tr>
<tr>
<td>Column1</td>
<td>Column2</td>
<td>Column3</td>
<tr>
<tr>
<td>Column1</td>
<td>Column2</td>
<td>Column3</td>
<tr>
</table>
If you use a table layout like that above, then my initial suggested method won't work, cuz you can store columns in a seperate element. So I then suggest, giving each column the same ID and calling something like:
document.getElementById("column_1").style.display='none';
I'm thinking if each column TD element has the same ID, then when you hide it, the browser should recognize that your hiding any elemnt whose ID is somevalue and should only recalculate and render once...
Just a suggestion
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
it seems a gr8 idea in the begining but when i try it here are the results:
1. the TD doesn't support the "name" attribute, so you can't get the TD's with same name in the getElementByName function as a collection.
2. if you specify the same "id" for the cells of one column and call getElementById this function return the first element with the specified id.
anyway thanks for your help and if you hava any suggestions please tell me.
|
|
|
|
|
Hercules01 wrote:
if you specify the same "id" for the cells of one column and call getElementById this function return the first element with the specified id.
So it only removed the first row in that column???
If thats the case...oh man...I dunno...the only other thing I can think of would be fairly intense, but I would think much faster than setting each row to display: none .
What I would suggets now is copy your entire table's innerHTML into a variable.
Then as a user hides a column, you could use regex to quickly strip out the desired columns and change the innerHTML to that of a missing column.
Not the prettiest of hacks, but I think it should work.
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
hey man, just wanna tell u to check the <col> tag for the table you add it after the <table> tag like this:
<table> <col> <col>
<tr>
<td></td>
<td></td>
<tr>
</table>
|
|
|
|
|
Hi i'm adding a shopping cart to a website i'm making for a nice lady http://www.honeymuffinmix.com and the shopping cart works by putting the item name in the URL and it sends it to another website which handles my cart. My question is there is a page where you buy gift packages with choices of what kind of honey mix you want. So to do that i want a drop down menu witch the choices and that would be a variable that could be inserted into my URL to be sent to the shopping script. Sadly i have no idea how to do this since i'm a C++ guy and i mainly deal with design of websites. So any help would be great below is the page i'm working on getting the menus on
http://www.honeymuffinmix.com/giftpackagesnextgeneration.htm
|
|
|
|
|
You'll need to use Javascript.
<select onchange="location.href='http://www.some_shopping_cart_webpage_cart.asp?itemid=this.options[this.selectedIndex].value'">
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Is this possible?
I have tried:
window.event.cancelBubble = true;
window.event.returnValue = false;
Doesn't work
Which doesn't surprise me really...
Can I somehow disabled scrollbars dynamically at runtime?
I know noscroll or scroll=no inside the body of a document prevents scrollbars from appearing, but I need scrollbars, just not for this particular second of operation.
CHeers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Does this solve your purpose?
<table>
<tr><td>
<a href="test.html" onclick="return false; ">Test</a>
</td></tr>
</table>
Ranjan Goyal
|
|
|
|
|
How can I cause a file download using the browser?
I have tried http:// and ftp:// but ftp doesn't work at all...something about a gateway. I don't really care!!!
http:// downloads files only if it doesn't have a registered file viewer which can treat a browser window as an container. For example PDF files don't download, they load into adobe immediately.
I am assuming this is done on the server side of things then...
Do I have to send headers with the file mime-type as some strange mime-type that IE won't automatically try and open the file's associated reader, etc...?
What mime-type do I use? and what other header do I send so the browser knows what file to download...?
Thanks
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
The way I do it is via perl. It can be done in any server-side language, however. You have to set the mime type to application/x-download and then set a content disposition as well. In perl the code looks like this:
print "Content-Type:application/x-download\n";
print "Content-Disposition:attachment;filename=$filename\n\n";
where $filename is the name of the file you are forcing a download.
In other languages, you would have something similar, though this is the main concept. Do a search for the server-side language you would be using and keywords like "force download" or something like that and you will see examples of code kinda like this.
|
|
|
|
|
Cool...those look like the headers I need.
I wasn't sure if thats how you did or not, so a second answer is awesome.
Thanks
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
I want to display a webpage within a DIV or SPAN - is that possible? For example, I want a DIV region on my parent page that loads Google into it - sort of like frames, only I need custom sizing and positioning beyond what frames are capable of.
|
|
|
|
|
When you refer to frames, I assume you mean iframes.
I'm not sure, but using CSS cannot you not control IFRAME as much as you could a DIV ?
Have you tried??? I don't see why you couldn't resize and position an IFRAME anywhere using:
style="position: absolute; top: 100px; left: 10px; width: 50%"
There is a way to display foreign source HTML in DIV's, however it's one hecka of a hack, not search engine friendly nor is it cross browser (actually you can make it cross browser, but it's a lot of work)
For this reason I suggest using IFRAME's and doing the CSS thing if you can. In fact both solutions require atleast a single IFRAME anyways.
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
aside from a site using META tags to specify keywords that search bots can use, HOW ELSE can a search engine be directed to one's site when someone "Googles" a topic?
I'm curious as to how my site could be identified when somebody looks for something that may or may not be related to my site's content. What brought visitors to my site?
Any ideas on my question?
Thanks,
Johnny
|
|
|
|
|
hi Johnny,
Anonymous wrote:
What brought visitors to my site?
Simply said, content and reputation of your site brings visitors.
Content - that's obvious, I think e.g. google indexes every word on your site, not only keywords. So more accurate your content is, the bigger is chance that search will show to user what he's looking for.
reputation - the more sites links to your site, the higher position in google's results you have.
see http://www.google.com/webmasters/4.html[^]
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
>How was my site discovered?
The reason I ask is security, for example.
Say I posted something that I didn't want to go out and didn't catch it for say 2 months. Aside from the obvious that I could look at on my page (META tags and like you said individual words on the page) are there other considerations that could have directed UNWANTED traffic to my site
Domain name? IPs? Corporate affiliation? Etc....
Thanks again.
Johnny
|
|
|
|
|
hi Johnny,
Anonymous wrote:
>How was my site discovered?
you didn't write this before!
I don't understand to your question than.
Do you want to know how ban search bots? Or how to delete your site from google's database? Or what? Oh wait.. you want to know ways how people can find your page! yes?
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Yes, I want to know how people can find a page.
Example, say I hosted a page on a university (educational instution) server in the USA. If I had:
1) META tags that keywords are "MATH SECRETS" and "ALGORITHMS".
2) The content, "How to develop mathematical algorithms"
Could a search (BOT, person initiated) identify my page by:
a.) IP (whatever.edu)
b.) location (USA)
c.) META keywords ("SECRET" and "ALGORITHMS" as words by themselves)
d.) the content (the individual words by themselves too)
e.) >> ANYTHING ELSE??
Thanks again for this info - curious.
Johnny
|
|
|
|
|
Anonymous wrote:
say I hosted a page on a university (educational instution) server
I am not that stupid. I know what "university" is. I study at one of them
Anonymous wrote:
e.) >> ANYTHING ELSE??
Only one thing came to my mind ... personal information about domain owner (WHOIS service), bt it doesn't identify author of the page.
So answer is.. AFAIK, nothing else. Anyway, I don't know much about security issues and about networks. If I knew what your original post was about, I wouldn't answer it
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
you can also use the "robots.txt" file in the root of your domain. in this file you can specify whether or not a search engine's crawler (like googlebot, for instance) may crawl your site, even to "you may not search <this> page" point.
that's the only thing i can think of.
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
sure. That's what I meant by question "do you want to ban searchbots"? It applies only to well-behaved bots, however. Better way can be check user agent's name after request, and send the right response (e.g. "get out of there", or act this is 404). And from last of Johnny's posts, I thought he wants to know what information bots can get once they reach his site. Bt I don't understant to his goal, to be honest.
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|