|
Just to have an html output.
for example if you have a string value of "the quick brown..." and when saving it into the file using savetofile("test.html") the result is in html format. It will automatically converted to html. once we use the savetofile command. But what I need is to convert it right away to html without saving it to the file.
My reason of this is because of regex expressions which will be using the regular expressions.
Do you think this can be converted by not using the savetofile?
test.html result:
<html>
...
<td>the quick brown...</td>
...
</html>
hifiger2004
|
|
|
|
|
If you want to add html tags either side of a string, you can. Your browser can show the string either way. I sure wouldn't bother displaying just a string and putting it in a table tho.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Yes, I actually resolved it now. I saved it into the table using the 'text' fieldtype. And when I retrieved it back it is in html format already.
Thanks
hifiger2004
|
|
|
|
|
Only for the reason I said. Because text with no tags will display in a browser.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
As CG stated, HTML is text. To be specific, HTML is literal text with reserved characters escaped, combined with markup (tags, attributes, processing instructions) delimited by combination of reserved characters, and stored as text. You can always manually encode your literal text (JS provides utility functions to help with this) and add in whatever tags you see fit.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Hi Guys,
How can I declare MEMO variable in asp.net 2.0?
I will be using this for storing email content value so I can get the html value and stored it into the database.
Thanks
hifiger2004
|
|
|
|
|
hifiger2004 wrote: How can I declare MEMO variable in asp.net 2.0?
What is MEMO variable ? Your question is not clear. Please explain it clearly.
|
|
|
|
|
memo variable like rtf for example.
Actually this is related with my other concern about converting string to html.
If there's a way to convert string value to become an html format, then that's what I need.
But just couldn't made it.
hifiger2004
|
|
|
|
|
Hi there.
I currently have a website and on a couple of my pages there are horizontal toolbars that I wish to remove. I'm pretty sure that there is a way of removing these but am not sure how.
Just wondering if anyone had any ideas?
David
|
|
|
|
|
Reduce the width of your page, and the browser won't show scrollbars. If you want to hide scrollbars, check out the CSS overflow attribute... but your page will still be too wide, and now users won't be able to scroll to see it (well, not with scrollbars at any rate).
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
can i reduce the width of my page within the script? I have even opened the page in MS Visual Web Developer and reduced the width of all paragraphs, images etc. But still no good.
|
|
|
|
|
you can. in as much as you use a width size that is not that too wide.
you can use a width of like 850px, that might do the magic for you.
cheers!
|
|
|
|
|
Brother, you may need to spend more time with your HTML reference. There are a lot of ways you can (intentionally or otherwise) force your page to be wider than it needs to be - large images, and absolute widths on tables or other elements are common - but potentially there are more subtle factors at play here (for instance, a table with two columns, each sized to 50%, may become wider than the viewport if there are borders, margins, or rounding errors in the browser itself). The use of an editing tool such as VWD can make these even more difficult to track down by obfuscating the actual styles in effect.
I recommend simplifying the page HTML as much as possible, to help make the source of the problem more obvious. Also, consider installing the Firebug tool for Firefox - it lets you visually examine the calculated dimensions of each element on the page, and by drilling down with this tool in hand you may be able to more quickly determine all that has contributed to your current predicament.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Try to display your code first so that we can check!
|
|
|
|
|
try this on your body onload event
document.body.style.overflow='hidden';
Regards
N.Surendra Prasad
|
|
|
|
|
Hello, there,
I am using Ajax in an application page in SharePoint 2007. I found that when there is an exception. Ajax will show a dialog box says " Sys.WebForms.PageRequestManagerParserErrorException: The message
received from the server could not be parsed.", and the original exception message is not displayed.
I know I can use registerpostbackcontrol() function to register the button that causes the exception to make the original SharePoint error page to show up. But I do not want to do that. Is there any other way to make the original SharePoint exception/error page to show up?
Thank you very much.
Best regards,
Bin
|
|
|
|
|
This is actually trivial. If you were using simple AJAX techniques built directly on XMLHttpRequest. See, that API gives you a handy responseText property that will give you what the server sent back without trying to parse it first.
But you're not. You're using some sort of complicated .NET thing built to conceal the simplicity of XMLHttpRequest. Try the ASP.NET forum[^], or perhaps find a Sharepoint forum. A place where masochists gather and delight in sharing tales of their byzantine workarounds for this baroque platform.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Hi everybody,
I need to call/include/import a JavaScript file (*.js) in another JavaScript (*.js) file. How can i do this.
I tried to do writing a line in script file like:
document.write("");
But this method writes the line to the document so i cannot use/call functions from another files which are stored in different folders.
Thanks for your help.
|
|
|
|
|
Ahmet GULBAY wrote: I need to call/include/import a JavaScript file (*.js) in another JavaScript (*.js) file. How can i do this.
I had no idea so I Googled: Javascript include
and found this on the first page of results[^]!
led mike
|
|
|
|
|
You're on the right track - but instead of writing to the document, create the <script> element using document.createElement() , set the attributes programatically, and then attach it to the document.
If you want an example... or a robust, ready-to-use implementation... check out the jQuery getScript function[^].
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
|
Script tags aren't parsed in Javascript files. I assume if he knew what needed to be loaded up-front, then he'd put that in the HTML though.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
i have a doubt to ask to u about flash.
i did one flash file with action script.
i embedded this file to dreamweaver.When iam taking the browser it is not coming.
They are asking for activeX.
without action script it was running.
Can u tell me how to enable web content for flash???
u know anything about ajax??
by rani
rani
|
|
|
|
|
Try this:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="500" id="your_ID" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="yourFlash.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="yourFlash.swf" quality="high" bgcolor="#ffffff" width="500" height="500" name="yourFlash.swf" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
|
|
|
|
|
I have a website that allows the file Demo.zip to be copied from the server in the usual line:
Download Demo here
Is there some way that a notification of this copying can be recorded in the server ?
For some people there must be an obvious solution, but not to me !
Thanks,
Raymond Mercier
|
|
|
|