|
Did you ever find out how to do this? If you do, can you let me know? Thank you.
|
|
|
|
|
No I haven't. I think I might just stuff it into a database. Trouble is that doesn't help me short term. I need to be able to demonstrate the concept and when I do I won't have a database near by at all.
I know you can't become if you only say what you would have done and you'll miss a million miles of fun." - Len
Work hard, play hard. Don't forget who you are and don't forget where you're from. Do all these things well and you won't have to wonder where you are going.
|
|
|
|
|
This is commonly refered to as CMS (Content Management System). There are many to choose from commercially, as well as much discussion on how to build one.
|
|
|
|
|
anyone know how to make a postback to an aspx page from javascript without calling any web control?
can i call __doPostBack() without passing any params ? i tried it but it didn't work
any ideas ?
Thanx.
|
|
|
|
|
Hi there,
In fact, the __doPostBack() function generated by the ASP.NET is a wrapper of the submit method of the form element. So you simply get reference to the form element, then invoke the submit method to cause the page to post back.
|
|
|
|
|
thanx for reply,
i used Page.GetPostBackEventRefrenece() in the Page_Load event and then used the __doPostBack() in javascript and it works fine now..
thanx for help.
|
|
|
|
|
hi all,
The present functionality is,
that there is a button to open a document in word and then we manually press file>print.
Required functionality is, there needs to be a button which will just print the page and close it, without displaying the page.
so, i'm opening the web page using:
<code>window.open(url ,null,"top=2000,left=2000");</code>
so its not visible to the client, and onload of the form i'm giving a call to window.print(), then window.close().
also, i need to print a web page with out the header and footer on click of a button.
i tried suppressing header and footer using the following script, but not able to use, since it requires ActiveX on client machine enabled/prompt.
<code>Set WSHShell = CreateObject("WScript.Shell")
myHeader = WSHShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup\header")
myFooter = WSHShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup\footer")
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\header", ""
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\footer", ""</code>
[a web page containing 3 frames, has a central frame conataining page to be printed.]
1. can i suppress the users header footer settings in some other way?
2. if i need to use the above script, can i detect the client machine's activeX settings somehow and show a message that they need to enable it in order to print?
HELP!!
regards,
Manisha
|
|
|
|
|
1. Not using client scripting or anything like that.
2. No, you can't detect the security settings. That would be a security breach.
If you want to change the users settings, either instruct the users how to change them, or supply a register file that they can run. If a script changed the settings in my browser, I would be pretty annoied...
What if the users are using a different browser?
---
b { font-weight: normal; }
|
|
|
|
|
I am sorry if i don't make much sense but this is because I don't quite know what i am looking for.
What I want to do is create a program that can play PHP based online game automatically. It will have to be able to exchange some data with the server so I assume that it is some kind of client application.
I was looking into doing this via IHTMLDocument interface and using some Java Scripts but i think it is not as straight forward as it might be.
any suggestions?
|
|
|
|
|
Hi,
Can someone send me links to access asp.net controls through javascript. I am new to both asp.net and javascript. Some times we dont want the data to post back to server, but i am very much confused for accessing it at client side through javascript.
Can someone Help...
Thanks
|
|
|
|
|
This is generally a bad idea, because it means you open yourself up to browser compatibility problems. If you must, then the first step is to view your source, so you can see what ASP.NET names your controls. Then you can use RegisterClientScriptBlock to inject jscript into your pages. Postback happens with a submit in jscript in your page, if you can intercept that, you can stop postback, but most controls can be stopped with autopostback=false in their attributes.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Dear group,
I am using the IE'API to get the font size of the text displayed on an IE. The class *IHTMLCurrentStyle* has got a bench of methods : get_fontSize, get_fontWeight, get_fontStyle.
Now because i will need to compare the size of elements on a web page, do you guys have any idea how to do that ?
as you can see get_fontSize() returns size in different formats (string, float ...), which will not allow me to do easy comparison between different sizes.
do you know how to get the font of text and perform simple comparison other than this way ???
cheers
llp00na
|
|
|
|
|
Although the font size and style can affect the size of an element, there is no easy way of calculating the element size from the font size and style.
What are you going to use it for?
Perhaps you are looking for the IHTMLElement.offsetWidth and IHTMLElement.offsetHeight properties?
---
b { font-weight: normal; }
|
|
|
|
|
thanx for the reply,
no i am not looking for the offsetWidth and offsetHeight.
I wana find out the size of the FONT of the different textual elements and compare them. After that, i wana sort them out according to the size of the font. For example, if you have two seperate paragraphs, how would you know which paragraph is written in bigger FONT regardless of the number of words in each paragraph !!!
i am not trying to calculate the size of the overall block, i am only trying to get a numerical value of the SIZE OF THE FONT used !!!
any ideas !!!
llp00na
|
|
|
|
|
I see. You wrote that you wanted to compare the size of elements, that was what threw me off.
I don't think that there is a way to get the actual size that is used to draw the text. I don't think that you even can get the actual font that is used to draw the text. The style information only contains what is the desired font, size and style of the text. If the computer does not support that setting, it will choose one that supposedly is as close as possible. For example, if the font specified in the style is not installed on the computer, it will choose another font.
To furter complicate the matter, font sizes isn't always comparable across fonts. For example Verdana 10px looks a bit larger than Times New Roman 10px.
---
b { font-weight: normal; }
|
|
|
|
|
is there a way i can use javascript to do what i can do with
"Request.Form("field")" to get the info off the page before my current page. i am looking for something to run at the client computer
thanks
chad
|
|
|
|
|
No. The form data is sent from a page to the server. The server does not relay the form data into the header of the next page.
If you send the data in the url instead (post the form with method="GET") you will be able to retrieve it on the next page.
This function might be useful if you choose that method:
Javascript : querystring[^]
---
b { font-weight: normal; }
|
|
|
|
|
|
Ok, I'm working on this project, we have a need to "standardize" our address data. So, right now, I have regular expressions that will turn North 7th Street into the USPS approved standard of "N 7th St" However, we have found out that we now have customers with addresses like "North Avenue" and it is unacceptable to report it as "N Ave" So, now to my actual question, is there a way with a regular expression ONLY to verify that the next word (after north for example) is not avenue. For clarifiaction, if the word Notrh is found, check to see if the very next word is avenue, and if it is, then we don't want to match. Any help would be appreciated. Thanks!
Brian Van Beek
Here's my boring blog! [^]
|
|
|
|
|
The same way you are finding North find Avenue after it or you can look for North and a number.
Show us your code.
|
|
|
|
|
Well, here's the problem, I can't just look for a number after it, because West Duff Avenue should become W Duff Ave. Here is what I have so far...
((\b[Nn][Oo][Rr][Tt][Hh])\b)|(\b[Nn]\b\.?)
It's just a really simple regex to find the match, then I replace it with the appropriate abbreviation. This is all done during a sort of batched job. Now, I just need to be able to "not match" if the next word is avenue. But I want to do it all in one regex. Is this possible? [obviously you can tell that I'm a beginner in the world of regular expressions]
Brian Van Beek
Here's my boring blog! [^]
|
|
|
|
|
I am trying to figure out how to load one frame from an event in another. Here is me frames page
<frameset border="0" frameSpacing="0" rows="15%,80%,5%" frameBorder="0">
<frame name="top" src="index.htm" scrolling="no" width="50%">
<frameset cols="25%,75%" >
<frame name="treeframe" src="HtmlPage2.htm" scrolling="yes" >
<frame name="Content" src="">
</frameset>
<frame name="bottom" src="HtmlPage3.htm" scrolling="no" width="50%">
</frameset>
I am clicking a link in treeframes and want to load the page into Content. I have tried everything i could think of and other things I found on somne javascript sites. My page will loadinto itself or not load and casue the frame to go blank.
Any help is greatly needed and appreciated
Joe
|
|
|
|
|
The simplest way is to not use javascript at all:
<a href="PageToLoad.htm" target="Content">
---
b { font-weight: normal; }
|
|
|
|
|
I tried this but the page opens in a new window.
|
|
|
|
|
Strange. Check the spelling again.
Also try to open something in the frame initially instead of leaving src empty. It might brake the tag.
---
b { font-weight: normal; }
|
|
|
|