Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

error "$v is not defined" in javascript function

607218Oct 22 2008 — edited Oct 23 2008
hi -- I have an HTML javascript header that defines a function. The first snippet of code is:

<script LANGUAGE = "JavaScript" src="http://www.json.org/json.js"></script>

<script type="text/javascript">

function lookupObjTypeID(){

alert ('Running javascript');


// Continue only if there's a value in objecttype_name field

if ($v('P3_OBJECTTYPE_NAME')){

...

The alert works, so the JS is getting executed. But I get
$v is not defined in the FF error console. I use $v several
places in the function, and every one causes that error if I
modify the code to get to that statement.

I've also put this into an incredibly simple page header, and
get the same error.

What am I doing wrong?

Thanks,
Carol
This post has been answered by Arie Geller on Oct 23 2008
Jump to Answer

Comments

Christian.Shay -Oracle

Hi, welcome to the forums, and thanks for taking the time to give your feedback!
In fact, a setting to enable autocomplete/intellisense in lower case is slated for our next release!
You are the first person to ask for case changing for code snippets. If you like a code snippet but want the case changed, you could modify the snippet to use the case you like, then select it and choose to Save Bookmark. Then use your bookmark for the snippet if you plan to use it repeatedly.
Christian

User_FCTQM

This is really good news! Lowercase for keywords and dba object will be nice !!
Yes, I have defined many and changed existed for my own snippets in "snippets/oracle-sql.json" file. I like it!
Problem is that i can not lowercase dba objects names or sql key words like SELECT BEGIN END BETWEEN etc.
Also would be very nice to have option to disable some SQL keywords or dba objects (i.e. hint only tables, columns) from autocomplete/intellisense. (What I mean with keywords is i have got my own snippet for "begin" and i would like to disable default keywords BEGIN).
begin_png.JPGAnyway, you are doing very good jobs and like this extension - i get know about forum from UKOUG yesterday ;)
I could have a bit more suggestions or "improvements" but i do not want to be too much grumpy and demanding ;))
I am waiting for next release - hope will be soon !

Thank you so much for this

Hi, lowercase autocomplete has been added to version 21.3.0. Go to the settings and change Intellisense › Suggestions: Keyword Casing and Intellisense › Suggestions: Object Name Casing to lowercase.

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 20 2008
Added on Oct 22 2008
7 comments
612 views