jquery cfml trigger('change') not working

后端 未结 2 1976
耶瑟儿~
耶瑟儿~ 2021-01-21 11:04

What I need is a cfselect bound to a query that lists file types, a cfdiv that lists the saved files, and a button that scans an image to be saved as a pdf file with the name pr

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-21 11:44

    Let me preface this by stating that I have not used the ColdFusion.navigate functionality before but according to the documentation here the function needs to be a link target. It needs to be in the href portion of an a tag. Look at the example on the documentation page that I referenced. So try adding your code to an a tag like this:

    
    click here
    
    

    Notice that I removed the url: text from your code. That does not appear to be necessary.

    It also appeared as though you are missing the container parameter for the function. The documentation states that if you are missing this parameter the link will be treated as a normal URL and the entire page will be refreshed. (Although your code was not a link?)

    Also, I'm not sure if you can reference the ColdFusion variables in the URL of the function like you are. Those are server-side and this function is client-side (javascript). Like I said, I have never used this before but these are my thoughts after reading that documentation.

提交回复
热议问题