Suntower
Posts: 225
|
| Posted: 02/10/2005, 2:27 PM |
|
Possible Noob/Basic Concept Question.
I put the following Event in an Update button on a form. The form has a list box and after a value is selected I want a variable to be assigned the selected value.
So...
Quote :
Function NewRecord1_Button_Update_OnClick() 'NewRecord1_Button_Update_OnClick @11-8B1F9986
GLO_CostCenterID = NewRecord1.COSTCENTERID.Value
response.write ''Hi There!'
response.end
End Function 'Close NewRecord1_Button_Update_OnClick @11-54C34B28
But this code doesn't seem to execute. I -never- see the response.write. output I put in to test. How come?
TIA,
---JC
GLO_CostCenterID = NewRecord1.COSTCENTERID.Value
response.write GLO_CostCenterID
response.end
_________________
---On a campaign for more examples and better docs! |
 |
 |
Benjamin Krajmalnik
|
| Posted: 02/11/2005, 10:56 AM |
|
Suntower (fellow Clarion dev, I believe...)
It may very well be executing but then being overwritten by the page
redisplay.
One method I have used to see if code was fiting was to use
response.redirect instead of response.write
|
|
|
 |
Suntower
Posts: 225
|
| Posted: 02/11/2005, 11:07 AM |
|
I would not call what I'm doing in CodeCharge to be 'development' at this point. More like 'floundering'. It's just similar enough to Clarion to be completely confusing. :D
But thanks...
Follow-up: Isn't there a function in ASP for a -Windows- pop-up messagebox? Could someone tell me what it is?
TIA,
---JC
Quote Benjamin Krajmalnik:
Suntower (fellow Clarion dev, I believe...)
It may very well be executing but then being overwritten by the page
redisplay.
One method I have used to see if code was fiting was to use
response.redirect instead of response.write
_________________
---On a campaign for more examples and better docs! |
 |
 |
peterr
Posts: 5971
|
| Posted: 02/11/2005, 11:13 AM |
|
ASP is run only on the server, so it cannot open any boxes on other computers (Web browsers), however you could do this with JavaScript within HTML. See http://www.webteacher.com/javascript/ch01.html
Alternatively you could create JavaScript code with ASP so that it is included in HTML.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Don Safar
|
| Posted: 02/12/2005, 7:02 AM |
|
Look in the lower left corner of the browser (IE ) to see if there is a
script error (it will have a little yellow icon). It appears your
response.write should be
response.write ''Hi There!" <-- double quote
not
response.write ''Hi There!' <-- single quote would not work
You might also want to append the value to see what it contains
response.write ''Hi There! " & GLO_CostCenterID
"Suntower" <Suntower@forum.codecharge> wrote in message
news:6420bdfef5d735@news.codecharge.com...
> Possible Noob/Basic Concept Question.
>
> I put the following Event in an Update button on a form. The form has a
> list
> box and after a value is selected I want a variable to be assigned the
> selected
> value.
>
> So...
>
> Quote :
> Function NewRecord1_Button_Update_OnClick()
> 'NewRecord1_Button_Update_OnClick
> @11-8B1F9986
> GLO_CostCenterID = NewRecord1.COSTCENTERID.Value
> response.write ''Hi There!'
> response.end
> End Function 'Close NewRecord1_Button_Update_OnClick @11-54C34B28
>
>
> But this code doesn't seem to execute. I -never- see the response.write.
> output
> I put in to test. How come?
>
> TIA,
>
> ---JC
>
>
> GLO_CostCenterID = NewRecord1.COSTCENTERID.Value
> response.write GLO_CostCenterID
> response.end
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |