|
Hi all,
I need a suggestion to solve the below problem.
intXOffset = window.event.offsetX;
intYOffset = window.event.offsetY;
the above code works good in IE but not in any other browsers
how to write a browser independent javascript for this. Also there is a problem with this code. The function containing this code is called onLoad of the body and onclick of a image.
Also any one suggest me a URL from where i can learn browser independent javascript.
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
http://www.unix.com.ua/orelly/web/jscript/ch18_01.html
|
|
|
|
|
I want to know that what will be the server in case of server side javascript.
I know the code for that but my code is not running on IIS server.
If server is tomcat than what will be the structure of that folder, because in tomcat we must need web_inf .
|
|
|
|
|
Server side javascript ???
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
ummmmm javascript is client side ... runs in the browser
you mean server side java - servlets?
"mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"
|
|
|
|
|
Classic ASP could do server-side Javascript. You don't want to use Classic ASP though. Trust me.
You could use Rhino[^] to run JS code on a server JVM, spitting out pages that way. Which sounds cool, but i've no experience with it and not too many other people do either, so prepare yourself for a lot of work getting things up and running.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Greetings to all,
I have just recently used the ajax autocomplete and after an hour or so, I finally go it to work. However, I noticed that only the 1st char of the input text is case sensitive. How do I set the autocompete control in such a way that every char that the user types in is case sensitive.
E.G.
Presently, this is what happens:
DB table values = hello, Hello, hEllo, hELLO
User input = hEllo
autocomplete value = hello, Hello, hEllo, hELLO
I want it to be:
User input = hEllo
autocomplete value = hEllo, hELLO
|
|
|
|
|
|
Hi Everybody,
How can i disable 'Save Background as' option when right clicking my mouse?
|
|
|
|
|
in the image wrie like this
Thanks
Laddie
Kindly rate if the answer was helpful
modified on Wednesday, May 21, 2008 10:26 AM
|
|
|
|
|
venkat86_ece wrote: How can i disable 'Save Background as' option when right clicking my mouse?
You don't. There are hacks that will work some of the time in some browsers, but they'll eventually go away because folks abuse them for things like disabling context menus instead of anything that actually helps the user. If someone is asking you to do this, then go back and tell them that it's a terrible idea and won't work.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
I have a problem with ReorderList control. It does not work correctly when attribute DataSourceId is set to XmlDataSource... When I moving items of this control some strange message appears:
"Reorder failed. It is not a DataSource and does not implement IList."
I wonder to know, how must I fix this problem.
I heard that it happens only if XmlDataSource is used as DataSourceID in ReorderList Control, but I must use this option...
Is there any solution of this problem?
here is the print-screen of the message which appears:
http://krokodajl.drivehq.com/xmlreorder.jpg[^]
Code for the ReorderList Control:
<cc1:ReorderList runat="server" ID="rol1" DataSourceID="XmlDataSource1"
PostBackOnReorder="false" AllowReorder="true" ItemInsertLocation="Beginning">
<ItemTemplate>
<%#XPath("id") %>
</ItemTemplate>
<ReorderTemplate>
<asp:Panel ID="reorderPanel" runat="server" CssClass="reorderCue"></asp:Panel>
</ReorderTemplate>
<DragHandleTemplate>
<div class="dragHandle"></div>
</DragHandleTemplate>
</cc1:ReorderList>
Code for the XmlDataSource Control:
<asp:xmldatasource id="XmlDataSource1" runat="server" DataFile="~/XMLFile.xml" XPath="source/dane" />
modified on Wednesday, May 21, 2008 8:42 AM
|
|
|
|
|
I think that I must write function which will update xml file with data after reordering items of ReorderList.
Is this a good idea? And if it is, what should I do to make it work.
|
|
|
|
|
hi friends
i am having flash file(.SWF)format gauge chart.how can i connect the flash file in sqlserver database using ASP.net
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
You can't use ASP.NET, you just can't. You need to ask 'how do I connect my flash file with SQL Server', it's a questin related to flash development. You can embedd your flash in an asp.net website, but no amount of .NET code will connect to a flash file.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Can anybody tell me how to change the width and height of internet explorer when html page loads(Example:150px * 100 px) . i hv written the foll. codes inside body tag
style="max-width: 133px;max-height: 20px"
but it is not working.
Thanks
|
|
|
|
|
function resizeWindow()
{
var screen_x = 150;
var screen_y = 100;
window.resizeTo(screen_x, screen_y);
window.moveTo(0,0);
}
just add the above javascript function inside script tags and call the function inside body tag:
<body onload="javascript:resizeWindow()" >
modified on Wednesday, May 21, 2008 5:33 AM
|
|
|
|
|
Thank you sir..
This code works fine
|
|
|
|
|
hi there web service experts, have this problem need to have a solution for this:
input sample: Begin list-sub\nResult=[Failed]\nBegin 1\nActual=[list-sub:123456789]\nNE=[HLR]\nRsult=[Failed]\nDesc=[value]\nAttr=[attr1=value,attr2=value]\End 1\nBegin 2\nActual=[list-sub:123456789]\nNE=[HLR]\nRsult=[Failed]\nDesc=[value]\nAttr=[attr1=value,attr2=value]\End 2\nBegin 3\nActual=[list-sub:123456789]\nNE=[HLR]\nRsult=[Failed]\nDesc=[value]\nAttr=[attr1=value,attr2=value]\End 3\nEnd List-sub
Begin Alias
Result= [Succeed/Failed];
Begin 1
Actual=[Actual MML command sent];
NE=[HLR/IN/VMS/OTA/..];
Result= [Succeed/Failed];
Desc=[Result Description];
Attr=[Att1=val1,att2=val2,&&,attn=valn];
End 1
Begin 2
Actual=[Actual MML command sent];
NE=[HLR/IN/VMS/OTA/..];
Result= [Succeed/Failed];
Desc=[Result Description];
Attr=[Att1=val1,att2=val2,&&,attn=valn];
End 2
.
.
.
Begin n
Actual=[Actual MML command sent];
NE=[HLR/IN/VMS/OTA/..];
Result= [Succeed/Failed];
Desc=[Result Description];
Attr=[Att1=val1,att2=val2,&&,attn=valn];
End n
End Alias
in other words the output should be like this
Begin list-sub
Result=[Failed]
Begin 1
Actual=[list-sub:123456789]
NE=[HLR]
Rsult=[Failed]
Desc=[value]
Attr=[attr1=value,attr2=value]
End 1
Begin 2
Actual=[list-sub:123456789]
NE=[HLR]
Rsult=[Failed]
Desc=[value]
Attr=[attr1=value,attr2=value]
End 2
Begin 3
Actual=[list-sub:123456789]
NE=[HLR]
Rsult=[Failed]
Desc=[value]
Attr=[attr1=value,attr2=value]
End 3
End List-sub
hope any experts can enlighten me with this kind of webservice problem Appreciate so much for any help
|
|
|
|
|
I think you are really talking about formatting xml here, not a web service. Or am I missing something?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi,
I have a web page where I have a form that allows a user to enter his login. When the user submits the login, I want to display something according to the login value (it's an image uploaded by the user and linked to his login by a cookie).
When the page is loaded at the beginning, the piece of code that displays the image has an empty variable (which is quite logical) and nothing appears.
I tried to reload the page after the user type in his login. That works fine under Firefox. The variable is updated with the value in the form and the right image is displayed. But under IE, when the reload occurs, the text in the form disappears and thus, the variable remains empty.
Is there any way to reload only the part of the page that displays the image? I've been looking at frames but I will lose the ability to move my image in the page (actually the image is part of a virtual keyboard that I can move around).
Any other ideas?
Thanks !
|
|
|
|
|
wheel27 wrote: Is there any way to reload only the part of the page that displays the image?
Make an AJAX call if you need to, then just set the href of the img tag to change the image, in jscript.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ok, I guess I will have a look at AJAX then.
|
|
|
|
|
So, as I said I went to AJAX. It is very good except that I have something wrong under Firefox. Everything is fine under IE7, but under FF2 when I submit my form, nothing happens anymore. I don't have any errors in the error console so I don't really see what's going on.
Sounds familiar?
|
|
|
|
|
Hi all,
I have a simple ASP page that uses QueryString to get a string passed to the ASP page in the URL and write it back to the page. The code page is set to 65001. I run it on IIS 6.
The server is configured with proper locales and all required code pages.
When i pass non English characters in the URL, it only shows spaces and nothing else.
Is the IIS server not configured properly or is there something special that should be done to get this to work?
The ASP page i'm talking about is just a test, the real ASP that i need to work is part of Microsoft Exchange Server 2003 so i don't think the code page should be changed.
Thanks,
darthBug
Join the dark side of the code
|
|
|
|