|
Just a tip, this is a very broad issue. Cross browser functionality is a major web design area and takes lots of study and experience to handle correctly. Asking a broad questions like "how do i make it work" will not generate answers. Please try to be more specific questions in future and use google to help yourself get a base knowledge.
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hi,
Hello friend,
I am an ASP.Net progrmmer i am interested to study JSON..can anybody suggest me a good tutorials for JSON...or else give me a sample code for JSON..help me
alex.
|
|
|
|
|
JSON is pretty straightforward, a google should give you articles with all the info you could hope to need.
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 )
|
|
|
|
|
Ya i got a vague idea..can u tell me the chances for an asp.net programmer in australia....just for curiosity i asked this..
|
|
|
|
|
its funny to ask such questions here... anyways, if u r from financial domain then there are pretty much chances to earn thousands....
Ashish Sehajpal
|
|
|
|
|
Slim to none without skill.
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hello everyone! The main question I'm trying to answer is - do you code review the production support fixes?
I would appreciate if you can also share how you do it in your organization. What do you look for? What is the process?
Thanks!
|
|
|
|
|
This question is better asked in the lounge. Web Development forum is not that popular compared to the lounge, and this is not a programming question.
modified 29-Aug-18 21:01pm.
|
|
|
|
|
Hello,
I've just developed my own small web server using 2008 Visual C# and created a simple web site with a page (aspx) and few controls on it using 2008 Visual Web Developer. Then using aspnet_compiler.exe I compiled that aspx page. (I don't have IIS on my server machine).
Now. Does anybody have any idea if it is possible - if so than how - to integrate this compiled page with my server so that when a client browser (IE) requests that page my server sends it back to the client for viewing/establishing communication between the client and the server ??
Andrew
|
|
|
|
|
Hello again,
I forgot to say that my server communicates with any client machine and can send to the client's browser simple text messages.
Andrew
|
|
|
|
|
|
i have two select boxes. sb1 and sb2. Sb1 is getting bind on page load with "project names"(field name)
Now there is another 3rd html control (html ddl, "select") which consist of name of managers.
Now onchange event of this 3rd ddl i am calling an ajax function which is retrieving data through xmlhttp and binding the sb2 with that (means assigned projects to the selected manager)
Now i am again using another ajax function to add new item from sb1 to sb 2 on a html button click.
Which is updating the new project to the projectassigned table into the account of that manager.
And sending the updated records for that manager, back, as response text .Its displaying into the sb2 with the updated recodrs. everything is fine till here.
BUT , NOW IF I AGAIN SELECT ANOTHER MANAGER AND THEN SELECT THAT MANAGER , ITS NOT GOING TO THE PAGE LOAD ON READYSTATECHANGE FOR THE LAST ITEM IN THE 3RD HTML DROP DOWN....It is shiowing the previous data .Even after updation.
for the last item selection , this thing is happening. but its showing the correct data for all other items other than item at the last index.....
Kindly suggest me , where m i doing the mistake....if u wish , i can send u the code also......
My id is
ajit@omniesolutions.com
hgdfytdygjhtdyrdjfjyryfrxjyryrxjyfxjrxyrxrxyrxrxrxyr
|
|
|
|
|
there may be problem of CACHING on server for page request
try sending one more querystring parameter for XMLHttpRequest.... idea is to use a time stamp with it...
just give it a try..
Ashish Sehajpal
|
|
|
|
|
I've been working with ASP .NET and data for a couple months now. I'm creating a web app that is more or less a "virtual worksheet" with multiple choice questions. I get the question text and four answers from an Access database. Using data from an invisible GridView, I create Labels and RadioButtonLists at runtime and add them inside a View in my MultiView.
For I As Integer = 0 To Me.gvQMultipleChoice.Rows.Count - 1<br />
Dim lbl As New Label<br />
lbl.ID = "lblQ" & I<br />
lbl.Text = I + 1 & ". " & Me.gvQMultipleChoice.Rows(I).Cells(0).Text<br />
Me.vw1.Controls.AddAt(Me.vw1.Controls.Count - 5, lbl)<br />
Dim rad As New RadioButtonList<br />
rad.ID = "rad" & I<br />
For I2 As Integer = 0 To 3<br />
rad.Items.Add(SwitchChar(I2) & ". " & Me.gvQMultipleChoice.Rows(I).Cells(I2 + 1).Text)<br />
Next<br />
rad.RepeatDirection = RepeatDirection.Horizontal<br />
Me.vw1.Controls.AddAt(Me.vw1.Controls.Count - 5, rad)<br />
Next
Basically, make a Label, get its question text, add it to the View. Same with the RadioButtonList. This works fine. My problem is later, when I am trying to find out which RadioButton is selected. Me.vw1.Controls doesn't contain any of these Labels or RadioButtonLists.
<br />
Dim myControls As ControlCollection = Me.vw1.Controls<br />
For I As Integer = 0 To myControls.Count - 1<br />
If myControls(I).ID <> Nothing Then<br />
If myControls(I).ID.StartsWith("rad") Then<br />
Dim rad As RadioButtonList = Me.vw1.Controls(I)<br />
ans &= rad.SelectedIndex<br />
Else<br />
'ignore<br />
End If<br />
End If<br />
Next
This should work fine, I'm confident it would. But again, the problem is that the dynamically created controls aren't in the list. Does anyone know why it would be like this.
By the way, the Labels and RadioButtonLists show up, and I can select a RadioButton. The second bit of code is executed on a Button.Click event.
Thanks!
Evan Stoner
Breeze Innovations
|
|
|
|
|
You should... try the ASP.NET forum. Pretty sure you need to add those controls yourself.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
What do you mean by add them myself?
Evan Stoner
Breeze Innovations
|
|
|
|
|
I mean that when you're working with the ASP.NET WebForm event model and you're creating controls on the fly, you need to create them on the fly even when you're handling events - they don't persist.
I'm also totally serious about this being the wrong forum. I might be feeding you a complete load of BS, due to not having bothered with WebForms in a good two years now...
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Well, I appreciate your help anyway.
Sorry, I guess I saw Web Dev first and just assumed. I'll try again in ASP.
Thanks.
Evan Stoner
Breeze Innovations
|
|
|
|
|
Hi,
In jsp and I guess in other "smart" html scripting languages there is a way to write "normal" html code inside script. For example, I can write something like:
<br />
<br />
<HTML><br />
<BODY><br />
#start_script<br />
if(some condition)<br />
{<br />
#stop_script<br />
<h1>Hello </h1><br />
#start_script<br />
}<br />
else<br />
{<br />
#stop_script<br />
<h3>World</h3><br />
#start_script<br />
}<br />
#stop_script<br />
</BODY><br />
</HTML><br />
<br />
This parts of the html are conditional and I don't have to use lot of document.write statements. Can I do this somehow with java script?
Thanks,
Yariv
|
|
|
|
|
Yariv wrote: Can I do this somehow with java script?
Do what? Not use document.write() ? By all means, please do not use it. It is eviiiil.
That said, no, there's no good way to use client-side JS the way you'd use a server-side template language. They're kinda meant for different things - what's wrong with leaving the bulk HTML generation to server-side JSP/PHP/etc.?
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Shog9 wrote: what's wrong with leaving the bulk HTML generation to server-side JSP/PHP/etc?
Hmmmm...because I don't have server.
I'm using html as UI for mfc as template. I generate an xml island in the html page, as database, and therefor want the html code to skip or display parts according to the xml data. Since I'm generating the html in my code it's not a big deal to use document.write all over the html, but since I don't know javascript well, I thought to ask if there is a client side solution to "conditional html".
Thanks for your help,
Yariv
|
|
|
|
|
Yariv wrote: I'm using html as UI for mfc as template.
Oh. So, what, you're embedding MSHTML in your desktop app?
That actually makes it a good deal easier - generating HTML in native code is much, much faster than using Javascript.
I recommend using XSLT to develop templates that will transform your XML into HTML, and then loading that.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Yariv wrote: In jsp and I guess in other "smart" html scripting languages there is a way to write "normal" html code inside script
Yariv wrote: and I don't have to use lot of document.write statements. Can I do this somehow with java script?
You can use inline HTML in Server side Javascript ( if you have a server that provides a Javascript engine) but document.write is part of the Object Model of the browser and is therefore Client Side.
led mike
|
|
|
|
|
I am doing an application in which i want to put some images and under them comes a text... On clicking the text it should go to the website....
Here is the sample code attached.....The innerhtml is given "GoTo Website" and on clicking that it should redirect to the website...and it use javascript...
Can anyone please help me do this........
Thanks in advance
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
dWise Solutions and Services Pvt Ltd.
BANGALORE
"Winners don't do different things. They do things differently. ...
modified on Sunday, April 6, 2008 1:32 AM
|
|
|
|
|
sajan ss wrote: SAJAN A PILLAI
ASP.NET,C#.NET Programmer
dWise Solutions and Services Pvt Ltd.
BANGALORE
You want to know how to create an anchor tag ? Either you're not serious, or this represents a new low in Indian contract development.
Perhaps you need to explain better. You want to create the link using javascript, or you have a reason for wanting to use javascript to redirect ?
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 )
|
|
|
|