|
djhankypark wrote: is it possible to make some code that will retrieve the data say every 30 secs without refreshing the page
Make a AJAX call to server every 30 secs to retrieve.
This will not refresh the complete web page
|
|
|
|
|
Hi there,
Sorry so long in thanking you for your advice been working away all week.
I will start looking around for some information on your recommendations
Regards
Ray
|
|
|
|
|
Hi,
Note : after writing the message below, I suddenly thought maybe I should check for a bug related to frameset resize in IE8 : turns out there is one and this link gives a work-around : re-do your rows and cols specs in percentages :
<a href="http://www.eggheadcafe.com/conversation.aspx?messageid=34343340&threadid=34269035">http://www.eggheadcafe.com/conversation.aspx?messageid=34343340&threadid=34269035</a>[<a href="http://www.eggheadcafe.com/conversation.aspx?messageid=34343340&threadid=34269035" target="_blank" title="New Window">^</a>]
AND THE WORK-AROUND ABOVE WORKS !
I have re-written a technique I once used in VBScript in JavaScript where :
1. the master html page (index) defines a frameset which I assign an ID to, and defines a method that changes this frameset's rows or cols.
2. in the html of one of the files loaded into one of the frames in the frameset :
a. an on-click handler calls the method on the index page via window.parent.topLevelMethod()
3. I have verified the onClick handler is working, and the top level method is getting called, but the frames are not being resized.
a. I've tried using both (in the method defined in the index page) :
1. innerFNFrameSet.cols = "0,*"
2. document.getElementById("innerFNFrameSet").cols = "0,*"
3. parent.document.all("outerFNFrameSet").all("innerFNFrameSet").cols="0,*";
4. I've inspected all the frame definitions making sure the boolean "noresize" flag has not been set for any of the ones that would be changed by my assinging new values to rows or cols.
In VBScript (IE 6 or so) I had this working with no problems.
Is there some refesh I should perform on the document or the frameset ?
Appreciate any ideas.
thanks, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
modified on Monday, May 4, 2009 12:20 AM
|
|
|
|
|
I have main page a.html that use window.open to show (let say b.html) confirm dialog.
I dont use Javascript 'confirm' dialog because I need to show my table format in it.
In my b.html has confirm button and simply when clicked, it close the b.html page and refresh my a.html.
I have problem refreshing the a.html (currently open).
I need to find some kind of link identified between two html page to communicate.
Any solution or other way to solve this?
|
|
|
|
|
i know you caan do it with javascript
"window.parent" or something.
|
|
|
|
|
I am building a site that crashes in certain IE 7 and 8 configurations when IE addons are enabled.
In an ideal world we could all migrate to firefox or browsers that rendered in accordance with the W3C standards (IE8 seems alot better but isnt perfect) and all used the same javascript but unfortunately I have to accommodate the various versions of IE.
I am pretty sure that the crash is a result of the javascript and addons not getting along but it is hard to tell as the crashes only happen on certain machines (with addons enabled)
Apart from turning off the addons....what are the cures, how do I check scripts?
|
|
|
|
|
nickmaroulis wrote:
unfortunately I have to accommodate the various versions of IE.
Bane of the web dev world...
nickmaroulis wrote:
how do I check scripts?
Slowly. Open them in your IDE - use debugging tools where possible. test on as many different machines as possible to give you a better idea of what's causing the problem.
But it also might help to tell us:
which add-ons are causing the problem?
What are you coding in?
|
|
|
|
|
i have done a crystal report in aweb application, when i run it gives me a message
"the report you requested requires further information"
i typed logon information and pressed the logon button, but dont go to the report
note, the database field is not active,
please, i need help to solve the problem.
|
|
|
|
|
I have response text of table string from php (including the tr and td )and I want to display it in my table with id= "displayCart" as follow:
<table border=1 id="displayCart" ></table>
document.getElementById("displayCart").innerHTML = xhr.responseText;
It work in Firefox, but not in my IE7.
|
|
|
|
|
The last time I had the pleasure :cough: :cough: of working with HTML and TABLE elements dynamically in IE, you had to use DOM methods that created the row and cell elements individually and add them to the table and row respectively. So no, AFAIK, you have never been able to set the innerHTML of a TABLE element in IE.
|
|
|
|
|
Though I have tried before(but I am using javascript) createElement, appendChild and so on, but still doesnt work.
I heard IE need tbody and tr must be in that tbody element, but still after creating that still dont work.
That makes me not so confident to do it in php. Anyway I should give this a try, but any key/hint that I should know?
I havent thought of including thead and tfoot element as I read from some website, any simple example for this that works?
|
|
|
|
|
LordLothar wrote: I am using javascript
Yes as is this example from your first post.
LordLothar wrote: document.getElementById("displayCart").innerHTML = xhr.responseText;
But now you say this:
LordLothar wrote: That makes me not so confident to do it in php
So your post has now become confusing.
LordLothar wrote: createElement, appendChild and so on, but still doesnt work.
I heard IE need tbody and tr must be in that tbody element, but still after creating that still dont work.
Well it does work because we use here in our application so you must have done it wrong.
|
|
|
|
|
My bad, what I mean is, first I tried it in JavaScript (never mind about this).
Since I use session in php thus I will loop my array and put it in DOM. I should try this before asking, below are example I have to create DOM in php. I will change the element name as html table later.
What concern me this will also return string or xml format? to xhr.responseText, in the end I have to display this using innerHTML to tag id I have in my html page. Will that still work in IE?
ECHO (toXml($myCart));
function toXml($aCart)
{
$doc = new DomDocument('1.0');
$cart = $doc->createElement('cart');
$cart = $doc->appendChild($cart);
foreach ($aCart as $Item => $ItemName)
{
$book = $doc->createElement('book');
$book = $cart->appendChild($book);
$title = $doc->createElement('title');
$title = $book->appendChild($title);
$value = $doc->createTextNode($Item);
$value = $title->appendChild($value);
$quantity = $doc->createElement('quantity');
$quantity = $book->appendChild($quantity);
$value2 = $doc->createTextNode($ItemName);
$value2 = $quantity->appendChild($value2);
}
$strXml = $doc->saveXML();
return $strXml;
}
This is my previous post of php code that return string with element tr and td (which doesnt work in IE of course):
function toHTML($aModel,$aMaker,$aPrice,$aQty)
{
$tableString="<tr>
<th>Manufacturer</th>
<th>Model</th>
<th>Price</th>
<th>Qty</th>
<th>Total Price</th>
</tr>";
foreach ($aModel as $item)
{
$tableString .="<tr id='".$aModel[$item]."'>
<td>".$aMaker[$item]."</td>
<td>".$aModel[$item]."</td>
<td>".$aPrice[$item]."</td>
<td>".$aQty[$item]."</td>
<td>".$aPrice[$item]*$aQty[$item]."</td>
<td><a href='#' onclick='RemoveItem(\"Remove\",\"".$aModel[$item]."\")';>Remove Item</a></td>
</tr>";
}
return $tableString;
}
|
|
|
|
|
LordLothar wrote: What concern me this will also return string or xml format? to xhr.responseText, in the end I have to display this using innerHTML to tag id I have in my html page. Will that still work in IE?
Sounds like you might be starting to catch on.
led mike wrote: AFAIK, you have never been able to set the innerHTML of a TABLE element in IE.
|
|
|
|
|
The best I can think that works in both IE and Firefox is:
<table border=1><tr><td id = "td1"></td></tr></table>
Then
javascript:void(document.getElementById('td1').innerHTML='Test2')
Hope that helps.
- Reelix
-= Reelix =-
|
|
|
|
|
Code which is used to Disable the right click Button on web-page.
---------------------------------------
<script type="text/javascript">
<!--//
function press()
{
if (event.button==2)
{
alert('Sorry, Right click is not allowed')
return false;
}
}
document.onmousedown=press
//-->
</script>
---------------------------------------
Just add this in HTML code after Head Tag.
Give me comment and suggestions other than this.
Regards
Dinesh Verma
|
|
|
|
|
|
Just out of interest... why would you want to disable the right click?
Any web programmer knows that code rendered in a browser can not be hidden!
All the functionality in right click is available in the menu bar.
|
|
|
|
|
I hope your reply pointed towards Denish's post.
Either you love IT or leave IT...
|
|
|
|
|
|
Hello All
I’m developing a website on tourism. It is public website where no authentication is required. I have around 200 topics which we need to cover. Instead of having 200 different html pages we were planning to have one single page which will display html content after fetching from database. We are planning to store all html for 200 topic in database table. We tested this approach with couple of topics and it is working fine.
Here I have a concern where I need your opinion:
Will above approach affect the google search engine to rate our different pages? Does this effect SEO activities…
Please suggest…Because for each topic meta tags will also be in database tables.
If your reply is yes please suggest some other alternative as we don’t want to maintain 200 different pages……..
Thanks,
Amit
|
|
|
|
|
For a better result, generate a single url for each content.
eg. www.yoururl.com/topic1, www.yoururl.com/topic2 ...
In this case, you will have one unique page that receives parameters and "generate" the page.
How? Using URL Rewrite. With one page, you can "make" many others.
And... In addition to meta tags, set a unique title too.
|
|
|
|
|
Hi
i have to copy a file from my machine to another machine in same network using an ip address in asp.net 1.1 using C#. how it will be done.
|
|
|
|
|
It would probably be best to set up a shared folder with access between the 2 machines and go from there using standard file operations
|
|
|
|
|
Bibhash Mishra wrote: i have to copy a file from my machine to another machine in same network using an ip address in asp.net 1.1 using C#
I suppose you can run asp.net application on both machines.
1. Write a web service for the machine that will receive file.
2. On the sending machine, pick the file, convert it into byte stream. Open a TCP connection(Socket) with the receiving machine, transfer the file and close the socket.
3. The web service will receive the byte stream and will write file to disk.
|
|
|
|